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

CSP (Content Security Policy) unsafe-eval #31

Open
franciscolourenco opened this issue Aug 28, 2019 · 2 comments
Open

CSP (Content Security Policy) unsafe-eval #31

franciscolourenco opened this issue Aug 28, 2019 · 2 comments

Comments

@franciscolourenco
Copy link

The eval() in the code trips CSP which don't allow eval. Possible to remove it?

@franciscolourenco
Copy link
Author

Any reason why we can't return window in

return savedEval('this')

?

@samdenty
Copy link
Owner

samdenty commented Aug 31, 2019

@franciscolourenco That wouldn't work for web workers etc, if you want to send a PR that uses globalThis go ahead.

copied from https://github.com/inikulin/replicator

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

2 participants