我正在寻找 React Native 上 WebView 中的 https url。但是,它不会在 web View 中 load.getting 错误。
code :-1202
description:
"The certificate for this server is invalid. You might be connecting to a server that is pretending to be “example.com” which could put your confidential information at risk."
domain:"NSURLErrorDomain"
,
提供用户名和密码后,相同的 url 在 safari 中工作。如何在带有 url 的 web View 中设置它。我正在使用 react native 和 iOS 。
最佳答案
我不确定这是否会解决您的问题,也不确定是否应该以这种方式解决此问题,但暴力解决方案可能是将域添加到 NSExceptionDomains
在您的 Info.plist
.你可以在这里找到更多信息,WORKING WITH APPLE’S APP TRANSPORT SECURITY
关于ios - 如何在具有授权证书的 React Native Webview 上加载网站,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48499798/