Reputation: 99
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?
Upvotes: 0
Views: 641
Reputation: 99
In the end i used HTTP with clear type in the android manifest file.
android:usesCleartextTraffic="true"
Upvotes: 0
Reputation: 13458
You can specify in your dev build that a particular host is insecure
See https://stackoverflow.com/a/61884408/1542667
Upvotes: 1