Transport security has blocked a cleartext HTTP
问题 What setting do I need to put in my info.plist to enable HTTP mode as per the following error message? 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. Assume that my domain is example.com . 回答1: If you are using Xcode 8.0+ and Swift 2.2+ or even Objective C: <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSExceptionDomains</key> <dict>