使用可在iOS 13上使用的证书的iOS 14上的TLS /证书问题[NSURLErrorDomain,错误代码:-1202]

问题描述

我正在开发一个可通过WKWebView显示本地网站的React-Native应用程序。我刚刚更新到iOS 14,现在又遇到了证书问题。昨天我没有收到此错误,但是在安装更新后,我遇到了这个可怕的错误消息:

"Error loading page"

React-Native WebView Error Screen

在Metro控制台中,我收到警告消息:

Encountered an error loading page {"canGoBack": false,"canGoForward": false,"code": -1202,"description": "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “10.0.1.10” which Could put your confidential @R_55_4045@ion at risk.","didFailProvisionalNavigation": true,"domain": "NSURLErrorDomain","loading": false,"target": 7,"title": "","url": ""}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)