App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Te

升级Xcode7后使用“http://”开头的URL时会出现“

App 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.

的log 要解决这个并不难,主要是在info.plist文件中进行配置,具体操作如下图:

添加NSAppTransportSecurity项类型为Dictionary。并且在里面添加一个item-------------->NSAllowsArbitraryLoads节,类型为Boolean值为YES。


App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Te_第1张图片


添加完成之后再运行程序,就OK了。


你可能感兴趣的:(App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Te)