【发布时间】:2015-12-18 03:24:21
【问题描述】:
在 iOS 9 上排除 ATS 对我不起作用。
我有一个没有域名(只有 IP 地址)和 SSL 证书的测试服务器(所以它是 HTTP 而不是 HTTPS)
试过了:
<key>52.24.145.252</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
但我仍然收到错误:
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
我做错了什么?
【问题讨论】: