jhen0409 / react-chrome-extension-boilerplate

Boilerplate for Chrome Extension React.js project
MIT License
2.14k stars 388 forks source link

Redux dev tool error when using dev mode #105

Open TheSimpleZ opened 4 years ago

TheSimpleZ commented 4 years ago

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?

devlab02 commented 4 years ago

@TheSimpleZ

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

thebpmgroup commented 2 years ago

How does this work for manifest v3?