This is due to the App Transport Security, a new protocol introduced by Apple at WWDC 2015. It doesn't allow any connections that are not HTTPS
. You can disable it, however it's not recommended as it secures your app.
To disable it you have to edit the App's .plist
. Simply right-click the .plist
file and select Open As -> Source File and add the following code:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key><true/>
</dict>
This will allow HTTP
requests.
Hope that helps, Julian.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…