参见英文答案 >
Transport security has blocked a cleartext HTTP23个
Hello Stackoverflow,
Hello Stackoverflow,
我将swift应用程序移动到Swift2.0后,我不断收到此错误:@H_403_4@
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. The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
我看了下面的链接https://forums.developer.apple.com/thread/5835@H_403_4@
并将以下代码添加到我的info.plist中@H_403_4@
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSExceptionDomains</key> <dict/> </dict>