Import fails with CORS
See original GitHub issueMy company’s web stack uses CORS. Merely importing stream-http causes a request to be made to example.com, which violates CORS and therefore causes the import to fail. In fact, I’m not importing stream-http directly, I’m importing fetch, so I can’t simply try/catch the import or anything like that.
The error appears on the line:
Failed on xhr.open('GET', global.location.host ? '/' : 'https://example.com')
So this is related to the previous issue.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:10 (5 by maintainers)
Top Results From Across the Web
javascript modules and CORS - Stack Overflow
I am trying to understand modules in JavaScript but when I try to write a very simple module I get CORS error.I am...
Read more >CORS errors - HTTP - MDN Web Docs - Mozilla
Navigate to the web site or web app in question and open the Developer Tools. Now try to reproduce the failing transaction and...
Read more >Drivers code import fails unless CORS Access-Control-Allow ...
I spent many hours trying to figure out why wget worked but Import Code from Website using the same URL did not import...
Read more >Dynamic imports CORS errors · Issue #10384 - GitHub
I am accessing the same deployment from multiple subdomains so cannot set ROOT_URL for "each" one.
Read more >Unable to import asset into playground, CORS error - Questions
Simply put, I'm trying to load a glb file into the playground, but it appears unable to due to CORS issues.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be within the next 24 hours. I’m trying to get the tests to pass, but they’re being flaky due to #63
@jhiesey Thanks for the update. Btw when is the next version going to be released?