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.

报错提示

错误原因

  • Xcode7.1之后新特性要求App内访问网络请求,要采用 HTTPS 协议。

解决方法

  • 在Info.plist中添加 App Transport Security Setting 类型 Dictionary ;
  • 在 App Transport Security Setting 下添加 Allows Arbitrary Loads 类型Boolean ,值设为 YES;
屏幕快照 2017-05-11 上午7.49.18.png

你可能感兴趣的:(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.)