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

Is there a different solution for unsafe eval? #10

Closed
danieldietrich opened this issue Jan 31, 2022 · 1 comment
Closed

Is there a different solution for unsafe eval? #10

danieldietrich opened this issue Jan 31, 2022 · 1 comment
Labels
🚀 enhancement New feature or request ⇩ low-priority This is a nice to have 🙅‍♀️ wontfix This will not be worked on

Comments

@danieldietrich
Copy link
Owner

Currently Candid uses eval to execute <script> code. Some pages use [CSP script-source](See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src) to disallow eval from other sources.

Content-Security-Policy: script-src 'unsafe-eval';
@danieldietrich danieldietrich added ⇩ low-priority This is a nice to have 🚀 enhancement New feature or request 🙅‍♀️ wontfix This will not be worked on labels Feb 3, 2022
@danieldietrich
Copy link
Owner Author

Currently I don't see another solution in the browser. The user has control over which scripts that get executed by using Content Security Policy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 enhancement New feature or request ⇩ low-priority This is a nice to have 🙅‍♀️ wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant