iOS9 App Transport Security

时间:2015-11-12 05:21:04

标签: ios objective-c iphone http ios9

我正在尝试发送http://请求但是,ATS会阻止我的请求。我在Allow Arbitrary Loads中启用了Info.plist,但仍然给出了同样的错误:

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.

enter image description here

2 个答案:

答案 0 :(得分:1)

li

您可以通过将此密钥添加到项目的info.plist中来绕过此目的

You can add exceptions for specific domains in your Info.plist

答案 1 :(得分:0)

您的词典App Transport Security Settings应命名为NSAppTransportSecurity。那里应该只有一个是NSAllowsArbitraryLoads布尔值的东西。这样的事情。

enter image description here