-
Notifications
You must be signed in to change notification settings - Fork 1
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 disallows WASM on Safari, Chrome #60
Comments
kujenga
added a commit
that referenced
this issue
Apr 24, 2022
While Firefox does allow for WASM compilation without such directives, Safari and Chrome do not, so unsafe-eval is the best we can do for now it seems in order to add universal support. Tracking various things [1] that will allow for the use of wasm-unsafe-eval instead. [1] #60
Issue is fixed with #61 brought in, but leaving this open as a reminder to switch to |
kujenga
added a commit
that referenced
this issue
Oct 2, 2023
Per https://caniuse.com/?search=wasm-unsafe-eval this functionality is now available in all major browsers, so it seems reasonable to switch over to it off of the broader CSP allowance. Closes #60
kujenga
added a commit
that referenced
this issue
Oct 2, 2023
Per https://caniuse.com/?search=wasm-unsafe-eval this functionality is now available in all major browsers, so it seems reasonable to switch over to it off of the broader CSP allowance. Closes #60
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With the merge of #57 I was validating in Safari and Chrome and ran into the following issue. Goal of this issue is to capture why this is and resolve it for those browser environments.
This is a problem many have run into, you can see all sorts of similar reports here: https://github.com/search?q=unsafe-eval+WASM+is%3Aissue&type=issues for various projects. Right now, the most universal solution is to put
unsafe-eval
in thescript-src
directive, which resolve the issue but is not ideal from a security perspective (though not too much of a major issue for this site). See here for reference: WebAssembly/content-security-policy#7The ideal next state to get to seems to be a
wasm-unsafe-eval
directive, outlined here: https://github.com/WebAssembly/content-security-policy/blob/master/proposals/CSP.md but it is not well-supported yet. Trackers forwasm-unsafe-eval
support being added to various browsers:wasm-unsafe-eval
is currently available in Chrome.The text was updated successfully, but these errors were encountered: