question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Import fails with CORS

See original GitHub issue

My 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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jhieseycommented, Jan 6, 2017

Should be within the next 24 hours. I’m trying to get the tests to pass, but they’re being flaky due to #63

0reactions
rohanprasadcommented, Jan 6, 2017

@jhiesey Thanks for the update. Btw when is the next version going to be released?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found