IOS Xcode7 http 和 https

139 阅读1分钟
  • 控制台 提示 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.

解决方法是 右键点击 plist ->open as ->source code -> 下方添加 代码

<key>NSAppTransportSecurity</key><dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/></dict>
  • ######看我那么可爱n(≧▽≦)n
  • 关注我的微薄 (梁同桌):http://weibo.com/tongrenyinsheng
  • 个人网站(同人音声) http://www.tongrenyinsheng.com
  • ios 个人写的app (同人音声)ASMR音乐