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.

Sign up to request clarification or add additional context in comments.

4 Comments

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
Can I use react-native-ssl-pinning library
I would suggest make changes in server. It would be better to handle this on the server side
You need to give details of server first. What framework are you using

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.