App Transport Security has blocked a cleartext HTTP//Xcode7 使用NSURLSession发送HTTP请求报错

在iOS9 beta中,苹果将原http协议改成了https协议,使用 TLS1.2 SSL加密请求数据。

错误提示:Application 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.


解决办法:修改info.plist文件

App Transport Security has blocked a cleartext HTTP//Xcode7 使用NSURLSession发送HTTP请求报错_第1张图片

你可能感兴趣的:(ios开发,IOS9,Xcode7)