egoist/esbuild-service

Access to script at from origin 'null' has been blocked by CORS policy

Closed this issue · 3 comments

Hi, looks like it doesn't allow requests from iframe srcdoc.

Access to script at 'https://esbuild.vercel.app/preact/hooks' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Reproduction

should work now

should work now

Yep cors issue fixed but it looks like inlines preact import within preact/hooks.

In my opinion it should import preact from https://esbuild.vercel.app/preact instead of inlining it.