Error Domain=NSURLErrorDomain Code=-1022
"The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." UserInfo={NSUnderlyingError=0xxxxxxxxx {Error Domain=kCFErrorDomainCFNetwork Code=-1022 "(null)"}, NSErrorFailingURLStringKey=http://192.168.10.11:80822/service=token_request&validateStr=xxxx&uniqueKey=xxxx, NSErrorFailingURLKey=http://192.168.10.11:8082/service=token_request&validateStr=xxxx&uniqueKey=xxxx, NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.}
iOS開發(fā)中依然使用http請求,而非https請求蓝角,必須要專門設(shè)置一下plist:
蘋果目前推薦使用https,設(shè)置允許http的方式進(jìn)行網(wǎng)絡(luò)通信。