问题描述:
** App Transport Security has blocked a cleartext HTTP ( resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file. **
问题原因:
在iOS9中,苹果将原http协议改成了https协议,使用 TLS1.2 SSL加密请求数据。
问题解决:
在 info.plist 将 NSAllowsArbitraryLoads 选项打开:
(1)打开 info.plist 点击 Open As > Source Code, 在打开的info.plist源代码文件的"<dict>"中添加以下代码:
NSAppTransportSecurity NSAllowsArbitraryLoads
(2)或者打开 info.plist 点击 Open As > Properity List
添加Key: App Transport Security Settings
在子项中:添加Key: Allow Arbitrary Loads, 选择Value: YES
参考: