天天看点

iOS: iOS9 beta 请求出现App Transport Security has blocked a cleartext HTTP (http://)

错误描述:

App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your ‘s Info.plist file.

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

解决方法:

在info.plist 加入key

添加截图如下:

iOS: iOS9 beta 请求出现App Transport Security has blocked a cleartext HTTP (http://)

:

<a href="https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS9.html#//apple_ref/doc/uid/TP40016198-DontLinkElementID_13">https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS9.html#//apple_ref/doc/uid/TP40016198-DontLinkElementID_13</a>

程序猿神奇的手,每时每刻,这双手都在改变着世界的交互方式!

本文转自当天真遇到现实博客园博客,原文链接:http://www.cnblogs.com/XYQ-208910/p/5142408.html,如需转载请自行联系原作者

继续阅读