0

When calling an API running on another computer within the same network (fetch('https://192... ), with generated SSL certificate (not trusted) the call always fails with TypeError: Network call failed

I have tried NSAllowsArbitraryLoads in Info.plist and it still doesn't work.

"react-native": "0.66.4"

Could not find a solution to make this work.

Phil
  • 141,914
  • 21
  • 225
  • 223
Gabriel P.
  • 3,002
  • 2
  • 30
  • 21
  • Does this answer your question? [React-native fetch() from https server with self-signed certificate](https://stackoverflow.com/questions/36289125/react-native-fetch-from-https-server-with-self-signed-certificate) – Phil Jan 20 '22 at 06:47
  • Thanks, haven't tried that. I will leave the question maybe somebody knows a less hackish solution. – Gabriel P. Jan 20 '22 at 06:50
  • Tried it, doesn't work for me. – Gabriel P. Jan 20 '22 at 06:56

0 Answers0