react-native fetch() works fine in localhost, but throws 'Network request failed'if pointed to web module of the application.can anyone please help me to resolve this issue.
1 Answer
You need to post more details but for start, Try working with postman on some other computer. If error still happens, you have some problem with your server.
-
Hi @usman, I have tested in postman.Its working only when I disable SSL verification certificate in postman. Should I need to do changes in recat native for this issue or we should do settings in web server– ReetaCommented Oct 31, 2019 at 8:16
-
-
I would suggest make changes in server. It would be better to handle this on the server side Commented Nov 1, 2019 at 11:10
-
You need to give details of server first. What framework are you using Commented Nov 12, 2019 at 12:02