0

Is there a way to ignore the self signed ssl as react native is using okHTTP3 on android under the hood and its not allowed to fetch from self signed SSL APIs, in my case its going to be always a local RestAPI and it will run on the local network. what is the workaround?

2 Answers 2

1

You can specify in your dev build that a particular host is insecure

See https://stackoverflow.com/a/61884408/1542667

https://square.github.io/okhttp/4.x/okhttp-tls/okhttp3.tls/-handshake-certificates/-builder/add-insecure-host/

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

2 Comments

I am using expo with react native and i dont know how to do it there
0

In the end i used HTTP with clear type in the android manifest file.

android:usesCleartextTraffic="true"

Comments

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.