【发布时间】:2019-05-01 09:23:44
【问题描述】:
我开发了 Web view To Navigate to web demo , URL 是
https://demos.xretail.com
我用
编辑了 info.plist <dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>www.the-domain-name.com</key>
<dict>
<key>NSExceptionMinimumTLSVersion</key>
<string>TLSv1.0</string>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSIncludesSubdomains</key>
<true/>
<key> NSAllowsArbitraryLoadsInWebContent</key>
<true/>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</dict>
</dict>
我在应用程序委托中使用 paybass 证书,但它对我不起作用
ServicePointManager
.ServerCertificateValidationCallback +=
(sender, cert, chain, sslPolicyErrors) => true;
【问题讨论】:
-
设置
the-domain-name.com 而不是www.the-domain-name.com -
还是同样的问题
-
你可以在你的设备中访问带有 safari 的 url 吗?
-
@AmrKamal 你解决了吗?
标签: ios ssl xamarin.forms xamarin.ios