App Transport Security has block

2016-03-07  本文已影响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>
上一篇下一篇

猜你喜欢

热点阅读