-
Hello everyone! I'm using ignite with expo, and I'm stuck with local API settings. I want to make requests from simulator to my local services using Curl, postman e.t.c. works fine. Web version also successfully receive responses, while IOS simulator throws error Looks like a simulator should be configured somehow to make requests to a local server, but I can't find information about that.
Caddyfile
my host file
Surely someone has faced the same problem and knows a solution. I would very appreciate for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hm, I've never had a problem hitting local servers. Can you spin up a local non-proxied server and try to hit that?
Then try to hit http://localhost:8989 with your fetch or apisauce. |
Beta Was this translation helpful? Give feedback.
Hey @jamonholmgren thank you for a quick response.
TBH, your advice really helped me move forward in my config. Indeed, If I run single server with
http
it works. But here is a thing.If I try to use secure connection for local server, like
https://localhost:port/
orhttps://local.chemiapp.com
it's throw the error. using named localhost withouthttps
lead to connection problems, thats why I'm trying to use https in this caseAlso, then I'm trying to use real mobile, I see this screen. I'm using
npx expo start --tunnel
command.I know this is not directly related to the ignite, but probably you work a lot with Expo maybe you can help.