{"action":"created","issue":{"url":"https://api.github.com/repos/dropbox/hackpad/issues/4","labels_url":"https://api.github.com/repos/dropbox/hackpad/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/dropbox/hackpad/issues/4/comments","events_url":"https://api.github.com/repos/dropbox/hackpad/issues/4/events","html_url":"https://github.com/dropbox/hackpad/pull/4","id":102464302,"number":4,"title":"Remove the CSP nonce from the CSP header","user":{"login":"kyleconroy","id":34893,"avatar_url":"https://avatars.githubusercontent.com/u/34893?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleconroy","html_url":"https://github.com/kyleconroy","followers_url":"https://api.github.com/users/kyleconroy/followers","following_url":"https://api.github.com/users/kyleconroy/following{/other_user}","gists_url":"https://api.github.com/users/kyleconroy/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleconroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleconroy/subscriptions","organizations_url":"https://api.github.com/users/kyleconroy/orgs","repos_url":"https://api.github.com/users/kyleconroy/repos","events_url":"https://api.github.com/users/kyleconroy/events{/privacy}","received_events_url":"https://api.github.com/users/kyleconroy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-21T21:20:43Z","updated_at":"2015-08-24T06:24:02Z","closed_at":"2015-08-21T23:32:20Z","pull_request":{"url":"https://api.github.com/repos/dropbox/hackpad/pulls/4","html_url":"https://github.com/dropbox/hackpad/pull/4","diff_url":"https://github.com/dropbox/hackpad/pull/4.diff","patch_url":"https://github.com/dropbox/hackpad/pull/4.patch"},"body":"When trying to load the homepage in Firefox 40, I get the following error in the console\r\n\r\n```\r\nContent Security Policy: Ignoring \"'unsafe-inline'\" within script-src: nonce-source or hash-source specified\r\n```\r\n\r\nThis is due to `nonce-source` and `unsafe-inline` being included in the CSP header.\r\n\r\n> Note this means that if you use a nonce/hash it's not possible to use\r\n> javascript: urls or inline event handlers. It's as if the policy didn't\r\n> have unsafe-inline at all. Probably worth throwing a warning on the web\r\n> console if we encounter both unsafe-inline and a hash/nonce. It's not an\r\n> error, but it might be a mistake. (\"warning, 'unsafe-inline' is ignored\r\n> when hash or nonce also used\")\r\n-- [Bug 1004703](https://bugzilla.mozilla.org/show_bug.cgi?id=1004703)\r\n\r\nI've removed the CSP nonce to make everything work again."},"comment":{"url":"https://api.github.com/repos/dropbox/hackpad/issues/comments/134054268","html_url":"https://github.com/dropbox/hackpad/pull/4#issuecomment-134054268","issue_url":"https://api.github.com/repos/dropbox/hackpad/issues/4","id":134054268,"user":{"login":"kyleconroy","id":34893,"avatar_url":"https://avatars.githubusercontent.com/u/34893?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleconroy","html_url":"https://github.com/kyleconroy","followers_url":"https://api.github.com/users/kyleconroy/followers","following_url":"https://api.github.com/users/kyleconroy/following{/other_user}","gists_url":"https://api.github.com/users/kyleconroy/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleconroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleconroy/subscriptions","organizations_url":"https://api.github.com/users/kyleconroy/orgs","repos_url":"https://api.github.com/users/kyleconroy/repos","events_url":"https://api.github.com/users/kyleconroy/events{/privacy}","received_events_url":"https://api.github.com/users/kyleconroy/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T06:24:01Z","updated_at":"2015-08-24T06:24:01Z","body":"It's not a bug, but a choice that Firefox has made when dealing with a CSP header that contains both `unsafe-inline` and a nonce. See the linked bug in the description for more context.\r\n\r\nI've attempted to remove `unsafe-inline` and `unsafe-eval` and I'm still getting CSP errors."}}