Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Can't connect to localhost in some setups #212

Closed
micimize opened this issue Apr 3, 2019 · 1 comment
Closed

Can't connect to localhost in some setups #212

micimize opened this issue Apr 3, 2019 · 1 comment
Labels
🚄 doc & examples requests for documentation, usage examples, and support enhancement New feature or request link Relates to link functionality

Comments

@micimize
Copy link
Collaborator

micimize commented Apr 3, 2019

This is pulled out of #186 as more general "development configuration"/documentation issue. This thread is generally documenting and organizing network (or seemingly network) issues. Some goals:

How to connect to localhost to different environs:

android simulator: Set host to 10.0.2.2
android device: adb reverse should work
iOS device: serve from and connect to your IP address (or alternatively mycomputername.local on mac)
iOS simulator: should work with localhost

Troubleshooting tips:

The "random ports" can happen as a result of network issues. A temporary workaround might be to use ngrok

@vincenzopalazzo
Copy link
Collaborator

This is related to the server that does not add the CORS header!

This is usually done by the proxy server or web server like nginix for this reason in the local host this error happens.

In order to solve this error, the server should include in the response the CORS header

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🚄 doc & examples requests for documentation, usage examples, and support enhancement New feature or request link Relates to link functionality
Projects
None yet
Development

No branches or pull requests

3 participants