0

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.

2

1 Answer 1

1

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
  • 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
    Commented Oct 31, 2019 at 8:16
  • Can I use react-native-ssl-pinning library
    – Reeta
    Commented Oct 31, 2019 at 8:44
  • 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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.