简体   繁体   English

GET方法(afnetworking)在iOS10上被取消

[英]GET method(afnetworking) was cancel on iOS10

I tested GET method by using AFNetworking on Charles(Web Debugging tool), however, the connection was canceled immediately. 我通过在Charles(Web调试工具)上使用AFNetworking测试了GET方法,但是该连接立即被取消。

I tried to get local json ini file by using "Map remote" and "Map local" tool of Charles at the same time. 我尝试同时使用Charles的“地图远程”和“地图本地”工具来获取本地json ini文件。

I doubted ATS(App Transport Security), but I don't know how to clear the problem... 我怀疑ATS(应用程序传输安全性),但我不知道如何解决此问题...

Is there way to clear this problem ? 有办法解决这个问题吗?

I tested it on Xcode8.1 and iOS10.0.1. 我在Xcode8.1和iOS10.0.1上进行了测试。

thank you 谢谢

If you use http resources it can really be ATS. 如果您使用http资源,那么它实际上可以是ATS。 You can easily test it - try this , first link for disable ATS, actually, and append here, if it helped. 您可以轻松地进行测试- 试试这个 ,实际上是第一个禁用ATS的链接,如果有帮助,请在此处附加。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM