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?
Asked
Active
Viewed 412 times
2 Answers
1
You can specify in your dev build that a particular host is insecure

Yuri Schimke
- 12,435
- 3
- 35
- 69
-
I am using expo with react native and i dont know how to do it there – Hak Aug 29 '20 at 13:37
-
I think this provides access https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/modules/network/OkHttpClientProvider.java – Yuri Schimke Aug 29 '20 at 15:05
0
In the end i used HTTP with clear type in the android manifest file.
android:usesCleartextTraffic="true"

Hak
- 69
- 8