有没有一种方法可以忽略自签名的ssl,因为react native在幕后使用安卓上的okHTTP3,它不允许从自签名的RestAPI中获取,在我的例子中,它总是一个本地RestAPI,它将在本地网络上运行。解决方法是什么?
发布于 2020-08-29 15:11:03
您可以在dev内部版本中指定特定主机是不安全的。
请参阅https://stackoverflow.com/a/61884408/1542667
https://square.github.io/okhttp/4.x/okhttp-tls/okhttp3.tls/-handshake-certificates/-builder/add-insecure-host/
https://stackoverflow.com/questions/63630830
相似问题