我正在尝试发送http://请求,但是ATS一直阻止我的请求。我已经在Info.plist中打开了Allow Arbitrary Loads,但它仍然给出相同的错误:
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.

发布于 2015-11-12 13:42:02
You can add exceptions for specific domains in your Info.plist您可以通过将此密钥添加到项目的info.plist中来绕过此操作
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>发布于 2015-11-12 13:26:07
您的字典App Transport Security Settings应该命名为NSAppTransportSecurity。里面应该只有一样东西,那就是NSAllowsArbitraryLoads布尔值。就像这样。

https://stackoverflow.com/questions/33664935
复制相似问题