IOS开发- 使用NSURLSession发送HTTP请求的问题

    

Application 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>

你可能感兴趣的:(IOS开发- 使用NSURLSession发送HTTP请求的问题)