react-chrome-extension-boilerplate icon indicating copy to clipboard operation
react-chrome-extension-boilerplate copied to clipboard

Redux dev tool error when using dev mode

Open TheSimpleZ opened this issue 4 years ago • 2 comments

Hello! I just cloned and ran this repo. I noticed that i'm getting this error whenever i use the extension:

Refused to load the script 'chrome-extension://lmhkpmbekcpmknklioeibfkpmmfibljd/js/redux-devtools-extension.js' because it violates the following Content Security Policy directive: "script-src 'self' http://localhost:3000 https://localhost:3000 'unsafe-eval'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

Any idea why this is happening?

TheSimpleZ avatar Apr 06 '20 14:04 TheSimpleZ

@TheSimpleZ

Modify your manifest.dev.json Add chrome-extension://lmhkpmbekcpmknklioeibfkpmmfibljd to "content_security_policy" under script-src

devlab02 avatar May 10 '20 15:05 devlab02

How does this work for manifest v3?

thebpmgroup avatar Jan 11 '22 17:01 thebpmgroup