Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
0.52 - CORS issue with JS Remote Debugging when using xip.io #17618
Is this a bug report?
Have you read the Contributing Guidelines?
Packages: (wanted => installed)
Target Platform: iOS 8
Steps to Reproduce
App should load correctly and not throw an error when trying to debug JS remotely.
(Paste the link to an example project and exact instructions to reproduce the issue.)
Just had to double check if it was indeed introduced since
You've saved my life!
I've upgraded to 0.52.0 as well and noticed that it wouldn't run on iOS with Remote Debugger On.
The 0.52.0 release seems to be quite buggy. I already wasted quite a few hours fighting with another issue that wouldn't let me build an app - #17274.
So, could you possibly change the title of this issue to something more alarming, so that the react-native maintainers notice it? Something like "Remote Debugging Doesn't Work on 0.52.0"?
I met the same problem on 0.52.0。
Facing the same without xip.io, just with IP-address of my Macbook while running application on device per ip-address of my working machine.
It happens only when debug-mode was enabled and failed then to load the code. Without debug-mode everything works as expected:
I have already whitelisted this IP-Address and also localhost in Info.plist:
But it still appears. At the end the ReactNative Application can't load its code while Debug-Mode is enabled. Without debug mode everything works as expected. Any ideas?
I'm having the same issue on:
Simply downgrading to React-Native 0.51.0 (by just running
Remember that, after downgrading, you should also reset the cache:
"Failed to load http://10.0.1.57.xip.io:8081/index.delta?platform=ios&dev=true&minify=false: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8081' 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.
referenced this issue
Jan 24, 2018
added a commit
Jan 27, 2018
Been getting this since about the same time this Issue appeared (Jan 15). Any time I create a CRNA app and try to debug it with Chrome. To get by, I would downgrade Expo and react native to previous versions: EXPO SDK to 24, React to 16.0.0, React Native to 0.51.x (matching the row shown for Expo SDK version 24.0.0. at https://github.com/react-community/create-react-native-app/blob/master/VERSIONS.md). I hadn't created a new CRNA app for a few weeks until today. Tried it and got the same thing. Came back here to see if there was any new news and saw the Google CORS Toggle suggestion from @luanfelipecosta. As others have reported, it works great. Hopefully this problem will get resolved before long, but until then, the CORS toggle is a quick and painless fix. Thanks @luanfelipecosta!
i have this error on mac with
i installed CORS toggle extension as @julioe says and now i can run in debug mode but with a lot of
@MaxInMoon I still have this issue in 0.54.0-rc.3. I had to get that version because of another issue on 0.54.4.
@julioe's fix worked for me as well! It seems to disable CORS for every tab though, not exactly safe.
@alainib These warnings are intended and expected behavior. See this blog post