我正在开发一个可通过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 information at risk.","didFailProvisionalNavigation": true,"domain": "nsurlerrordomain","loading": false,"target": 7,"title": "","url": ""}