es-module-shims
es-module-shims copied to clipboard
Using importmap in web worker on a site with a content security policy
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!
Yes, that's correct.