webcontainer-core
webcontainer-core copied to clipboard
Cors issue on Safai
Describe the bug
Container never load node dependancies because something is blocked by cors
[Error] Cancelled load to https://nuxt-ui-mxzpui.stackblitz.io/relay because it violates the resource's Cross-Origin-Resource-Policy response header. [Error] Failed to load resource: Cancelled load to https://nuxt-ui-mxzpui.stackblitz.io/relay because it violates the resource's Cross-Origin-Resource-Policy response header. (relay, line 0)
Link to the blitz that caused the error
https://stackblitz.com/edit/nuxt-ui-mxzpui?file=app.vue,package.json,nuxt.config.ts
Steps to reproduce
- Open my Blitz container into Safari 17.4.1
- Check your web console
- See that cors error is showed
Expected behavior
Load correctly dependancies and start container
Parity with Local
- [X] I have run the project in my local machine and I could not reproduce the issue.
Screenshots
No response
Platform
Browser name = Safari
Full version = 17.4.1
Major version = 17
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15
performance.memory = undefined
Hash = 41fbae16
Additional context
No response