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 Support for ESM Integration #56

Open
guybedford opened this issue Oct 15, 2021 · 2 comments
Open

CSP Support for ESM Integration #56

guybedford opened this issue Oct 15, 2021 · 2 comments

Comments

@guybedford
Copy link
Collaborator

Somewhat related to #41, it's worth thinking about what CSP policies will apply to the ESM integration when importing Wasm.

Currently the Wasm CSP spec defines wasm-unsafe-eval to be required for all JS API usages.

Would the ESM integration form an exception here when importing Wasm in that it maintains full control of the script src? Or would it simply adopt this same policy?

@fgmccabe
Copy link

I don't have a well formed opinion on this at the moment.

@annevk
Copy link
Member

annevk commented Oct 18, 2021

As script fetching is currently setup it would indeed use script-src. I filed whatwg/html#7233 to see if that's how it should be.

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

3 participants