编程那点事编程那点事

专注编程入门及提高
探究程序员职业规划之道!

iOS开发

The resource could not be loaded because the App Transport Security policy requires the use of a sec
iOS开发

The resource could not be loaded because the App Transport Security policy requires the use of a sec

阅读(1969)

用AFNetworking请求时,报错,具体如下:Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." 意思是:资源不能被加载,因为该应用程序传输的安全策略要求使用安全连接新特性要求App内访问的网络必须使用HTTPS...