{"action":"opened","issue":{"url":"https://api.github.com/repos/zalmoxisus/crossbuilder/issues/48","repository_url":"https://api.github.com/repos/zalmoxisus/crossbuilder","labels_url":"https://api.github.com/repos/zalmoxisus/crossbuilder/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/zalmoxisus/crossbuilder/issues/48/comments","events_url":"https://api.github.com/repos/zalmoxisus/crossbuilder/issues/48/events","html_url":"https://github.com/zalmoxisus/crossbuilder/issues/48","id":205356315,"number":48,"title":"unsafe-eval in dev ","user":{"login":"brandonmp","id":14139991,"avatar_url":"https://avatars.githubusercontent.com/u/14139991?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonmp","html_url":"https://github.com/brandonmp","followers_url":"https://api.github.com/users/brandonmp/followers","following_url":"https://api.github.com/users/brandonmp/following{/other_user}","gists_url":"https://api.github.com/users/brandonmp/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonmp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonmp/subscriptions","organizations_url":"https://api.github.com/users/brandonmp/orgs","repos_url":"https://api.github.com/users/brandonmp/repos","events_url":"https://api.github.com/users/brandonmp/events{/privacy}","received_events_url":"https://api.github.com/users/brandonmp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-04T16:09:10Z","updated_at":"2017-02-04T16:09:10Z","closed_at":null,"body":"I just added `crossbuilder` in a nested folder in another of my repositories (so it uses parent `babelrc`, `eslintrc`,etc.), so this problem could be related to my specific config, but wanted to share anyway.\r\n\r\nWhen loading the extension and inspecting the `background` console, I get this error:\r\n\r\n````\r\nredux-devtools-extension.js:2 Refused to execute inline script because it violates the following Content Security Policy directive: \"script-src 'self' http://localhost:3000 'unsafe-eval'\". Either the 'unsafe-inline' keyword, a hash ('sha256-CPbkA6xlx6EbHFrsB6YD4F99pTLewMUVM3xYm1Pt5hM='), or a nonce ('nonce-...') is required to enable inline execution.\r\ne.injectOptions @ redux-devtools-extension.js:2(anonymous function) @ redux-devtools-extension.js:2(anonymous function) @ redux-devtools-extension.js:2target.(anonymous function) @ extensions::SafeBuiltins:19safeCallbackApply @ extensions::sendRequest:21handleResponse @ extensions::sendRequest:74\r\nconfigureStore.js:33 GET STATE (configure, callback) {\r\n  (0, _getStoredState2.default)(configure, function (store) {\r\n    (0, _crossmessaging.onConnect)(function () {\r\n      return { name: 'init', state: { counter: store.get… true\r\n````\r\n\r\nAs the warning advises, I added the `hash` to `manifest.dev.json`, and it actually works fine.\r\n\r\nIs this a suitable solution? I thought the `hash` was a hash of the actual inline script, but when I make small modifications to the `Counter` component, the extension still injects it fine, so I assume I'm missing something. \r\n\r\n"}}
{"actor":{"display_login":"brandonmp"}}