Hak
Hak

Reputation: 99

React native fetch on android against local RestAPI with self signed SSL certificate

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

Answers (2)

Hak
Hak

Reputation: 99

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

android:usesCleartextTraffic="true"

Upvotes: 0

Related Questions