Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' blob: filesystem:". #1

Open
deadcoder0904 opened this issue Feb 16, 2021 · 0 comments

Comments

@deadcoder0904
Copy link

I got the above error & solved it via https://stackoverflow.com/a/49100966/6141587

In short, added this to webpack.config.js:

devtool: 'cheap-module-source-map'

I think it'd be a great add to the boilerplate :)

rahulrao0209 added a commit to rahulrao0209/pagepen that referenced this issue Jul 4, 2024
This commit resolves the Chrome extension content securitypolicy error by changing the style of source mapping Webpack uses.
For more info refer:
sivertschou/react-typescript-chrome-extension-boilerplate#1
https://webpack.js.org/configuration/devtool/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant