美文网首页iOS一些bug
Error Domain=NSURLErrorDomain Co

Error Domain=NSURLErrorDomain Co

作者: 西江月 | 来源:发表于2016-10-08 22:38 被阅读1184次

Error Domain=NSURLErrorDomain Code=-1022

"The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." UserInfo={NSUnderlyingError=0xxxxxxxxx {Error Domain=kCFErrorDomainCFNetwork Code=-1022 "(null)"}, NSErrorFailingURLStringKey=http://192.168.10.11:80822/service=token_request&validateStr=xxxx&uniqueKey=xxxx, NSErrorFailingURLKey=http://192.168.10.11:8082/service=token_request&validateStr=xxxx&uniqueKey=xxxx, NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.}

iOS开发中依然使用http请求,而非https请求,必须要专门设置一下plist:

苹果目前推荐使用https,设置允许http的方式进行网络通信。

相关文章

网友评论

    本文标题:Error Domain=NSURLErrorDomain Co

    本文链接:https://www.haomeiwen.com/subject/nhhpyttx.html