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

WeakMap polyfill causing Content Security Policy errors #6

Open
jvanoostveen opened this issue Aug 14, 2019 · 0 comments
Open

WeakMap polyfill causing Content Security Policy errors #6

jvanoostveen opened this issue Aug 14, 2019 · 0 comments

Comments

@jvanoostveen
Copy link

As the WeakMap polyfill is imported, it will trigger a CSP error (see the following snippet) as it uses eval.

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'".

    at eval (<anonymous>)
    at Object../node_modules/weakmap/weakmap.js (weakmap.js:240)
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