陈斌彬的技术博客

Stay foolish,stay hungry

Xcode7 使用 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.

img

NSAppTransportSecurity Dictionary

NSAllowsArbitraryLoads Boolean YES

Resource Reference