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

Using importmap in web worker on a site with a content security policy #420

Open
jnromero opened this issue Apr 18, 2024 · 1 comment
Open

Comments

@jnromero
Copy link

I am trying to use an importmap in a web worker on a site with a content security policy. I am following this example here:

https://github.com/guybedford/es-module-shims?tab=readme-ov-file#module-workers

Am I correct that currently, the only way to use the import map in the web worker is to add 'unsafe-eval' to the script-src? Just trying to confirm that this is true, and was wondering if there are any ways to work around this. Thank you!

@guybedford
Copy link
Owner

Yes, that's correct.

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