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
  • 157,677
  • 23
  • 242
  • 245
Gabriel P.
  • 3,400
  • 2
  • 32
  • 23
  • 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