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

No progressive enhancement for unsafe-eval #42

Open
niklasf opened this issue Oct 26, 2022 · 0 comments
Open

No progressive enhancement for unsafe-eval #42

niklasf opened this issue Oct 26, 2022 · 0 comments

Comments

@niklasf
Copy link

niklasf commented Oct 26, 2022

With the current proposal, it appears to be impossible to benefit from wasm-unsafe-eval through progressive enhancement. For maximum browser compatibility, unsafe-eval is still required and due to

If the unsafe-eval source keyword is used, then this overrides any occurence of wasm-unsafe-eval in the CSP policy.

specifying both gives no benefit.

There is prior art for enabling progressive enhancement by doing the opposite, for example in the interaction of unsafe-inline and nonce-*:

script-src: 'unsafe-inline'; 'nonce-foo'

is compatible with browsers that do not recognize nonce-*, but browsers that do recognize nonce-* use the more restrictive nonce and ignore the more general 'unsafe-inline'.

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

1 participant