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.

Unable to debug app with 'No 'Access-Control-Allow-Origin' header is present' error

See original GitHub issue

When I start up my Android Samsung S8+ device over wifi or Genymotion S8 emulator on the same machine to access the expo project using expo XDE, in the Chrome console, I see the following errors:

Failed to load http://192.168.1.6:19004/node_modules/expo/AppEntry.delta?platform=android&dev=true&strict=false&minify=false&hot=false&assetPlugin=G:\Projects\bt\ff\node_modules\expo\tools\hashAssetFiles: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:19004' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Uncaught (in promise) TypeError: Failed to fetch

I believe this could potentially be caused by updating sdkVersion from 24.0.0 to 25.0.0. @brentvatne Do you have any idea? Does anyone not have this issue?

I believe it could be related to this issue reported 9 days ago which seems similar to what @jugutier has: https://github.com/facebook/react-native/issues/17618

I can’t debug and see what’s happening on Redux 😭

Okay, I think the CORS error that @jugutier and I are experiencing is different to the original issue…

It won’t let me downgrade to 24.0.0 😭 If anyone knows how I can downgrade to 24.0.0 please let me know.

A few other users have reported this issue on this thread: https://github.com/react-community/create-react-native-app/issues/392

And also here: https://github.com/expo/expo/issues/1351

If this is an issue that is a duplicate of https://github.com/expo/expo/issues/1351, please feel free to close this issue.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

15reactions
arfa123commented, May 2, 2018

try to install the extension “Allow-Control-Allow-Origin” in your chrome browser, from this my problem is solved, you may try this.

3reactions
quinlanjcommented, Feb 1, 2018

this is an issue that occurred upstream with react native and the fix will ship in the next Expo SDK. Sorry for the inconvenience!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to debug app with 'No 'Access-Control-Allow-Origin ...
Unable to debug app with 'No 'Access-Control-Allow-Origin' header is present' ... Okay, I think the CORS error that @jugutier and I are ...
Read more >
No 'Access-Control-Allow-Origin' header is present on the ...
You can use it for debugging your app on a local machine (if ... Summary: No more CORS error by appending 'Access-Control-Allow-Origin: ...
Read more >
How to Debug Any CORS Error - HTTP Toolkit
Most CORS errors are quick & easy to debug and fix, once you understand the ... No 'Access-Control-Allow-Origin' header is present on the...
Read more >
Resolve the "No 'Access-Control-Allow-Origin' header" error ...
I'm getting the CORS error "No 'Access-Control-Allow-Origin'" on my requested resource in Amazon CloudFront. Why am I getting this and how can I...
Read more >
How to solve S3 CORS file error with "Access-Control-Allow ...
... 'http://localhost:8000' has been blocked by CORS policy: No ' Access-Control-Allow-Origin ' header is present on the requested resource.
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