esm-dev / esm.sh

A fast, smart, & global CDN for modern(es2015+) web development.
https://esm.sh
MIT License
3.12k stars 150 forks source link

'localStorage' issue with "esm" function. #866

Open MarketingPip opened 2 months ago

MarketingPip commented 2 months ago

When using the esm build function you may face issues with 'localStorage'....

Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
prenx4x commented 1 month ago

I am facing the same issue when using esm.sh/run in playwright using page.setContent. Why does esm.sh/run need to use localStorage? Is it possible to have a script that does not need localStorage access?