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.
-
Give us some code, some logs, some context.. stackoverflow.com/help/how-to-askNeeko– Neeko2019-10-30 14:23:27 +00:00Commented Oct 30, 2019 at 14:23
-
github.com/facebook/react-native/issues/24627 for your referenceRizwan Ahmed Shivalli– Rizwan Ahmed Shivalli2019-11-02 16:50:48 +00:00Commented Nov 2, 2019 at 16:50
Add a comment
|
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.
4 Comments
Reeta
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
Reeta
Can I use react-native-ssl-pinning library
usman faisal
I would suggest make changes in server. It would be better to handle this on the server side
usman faisal
You need to give details of server first. What framework are you using