-
Notifications
You must be signed in to change notification settings - Fork 893
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
Content Security Policy and new Function(...) #123
Comments
One possible solution is to inline the results of makePredicate instead of computing it dynamically when acorn runs. |
Some discussion on this was already in #90. |
See #90 (comment). |
RReverser
added a commit
to RReverser/acorn
that referenced
this issue
Sep 12, 2014
Ported from https://github.com/RReverser/acorn-csp. Fixes acornjs#90. Fixes acornjs#123.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using a strict content security policy, using acorn will throw an exception when it calls makePredicate because it uses the Function constructor.
Here is a test case:
<script src="acorn.js></script>`
`
The text was updated successfully, but these errors were encountered: