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: "default-src 'self' 'unsafe-inline'" #19062

Closed
willyelm opened this issue Feb 1, 2016 · 1 comment
Labels

Comments

@willyelm
Copy link

willyelm commented Feb 1, 2016

Getting Error: 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: "default-src 'self' 'unsafe-inline'"

When using the server header:

Header set Content-Security-Policy: "default-src 'self' 'unsafe-inline'"

https://github.com/twbs/bootstrap/blob/v4-dev/js/src/util.js#L121

@cvrebert
Copy link
Collaborator

cvrebert commented Feb 1, 2016

Duplicate of #17964.

@cvrebert cvrebert closed this as completed Feb 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants