iOS开发: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

默认情况下,http协议因为安全问题被禁止使用,可以在Info.plist里配置打开。
在根节点下添加”App Transport Security Settings”,在App Transport Security Settings下添加”Allow Arbitrary Loads”,Value设为YES
如下图:
iOS-http-security

© 2016, 冰冻鱼. 请尊重作者劳动成果,复制转载保留本站链接! 应用开发笔记