美文网首页
App Transport Security has block

App Transport Security has block

作者: 疯狂的向日葵 | 来源:发表于2016-03-07 12:36 被阅读63次

    Xcode报错:
    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.
    方法:
    info.plist里配置:

     <key>NSAppTransportSecurity</key>
        <dict>
            <key>NSAllowsArbitraryLoads</key>
            <true/>
        </dict>
    

    相关文章

      网友评论

          本文标题:App Transport Security has block

          本文链接:https://www.haomeiwen.com/subject/bmsakttx.html