Simulator fetching to localhost services throw the error [TypeError: Network request failed] #28361
Unanswered
ivandata
asked this question in
Archived: Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone! I'm stuck with local API settings. I want to make requests from simulator to my local services using fetch/axios e.t.c. I have services and APIs running in docker with local host and certificates. I'm using Caddy server to redirects calls from localhost to docker images.
Curl, postman e.t.c. works fine. Web version also successfully receive responses, while IOS simulator throws error
[TypeError: Network request failed]
.Looks like simulator should be configured somehow to make requests to local server, but I can't find information about that.
Compose file
Caddyfile
my host file
Beta Was this translation helpful? Give feedback.
All reactions