-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
CSP compliant build #334
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
CSP compliant build #334
Comments
I'd also consider acorn.js as an alternative, potentially slightly faster, parser to Esprima. I played with shimming/modifying Maybe I'm missing something -- any ideas? |
I haven't got time to dig into this yet, but take a look at https://github.com/substack/static-eval and https://github.com/polymer/polymer-expressions |
Definitely useful; thanks for the references. |
For what it's worth, I was able to get it working in a strict CSP environment using a "browserified" version of the "notevil" package. I don't have the time right now to test it thoroughly and it could be heavily optimized, but it get's the job done for anyone looking for a quick and dirty solution. It may be a good starting point for a more complete implementation. Commit: cecchi@d1caa52 |
0.11 CSP compliant build is now available in the |
Basically use a different
exp-parser
that uses Esprima. Since size doesn't matter that much in CSP-enforcing environments, the extra code is an acceptable tradeoff.The text was updated successfully, but these errors were encountered: