rebeccay

常常喜乐

导航

cordova iOS项目在xcode7下访问网络请求异常

xcode7下应用访问网络请求报如下错误:
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.
 
网友提供的回答完美的解决了我的问题
1.打开 proName-info.plist文件,在根目录下添加NSAppTransportSecurity,类型为Dictionary
2.在NSAppTransportSecurity下添加NSAllowsArbitraryLoads,类型为Boolean,值设置为YES
然后运行项目就OK啦~

posted on 2015-10-21 17:46  rebeccay  阅读(625)  评论(0编辑  收藏  举报