您的位置:首页 > 其它

An SSL error has occurred and a secure connection to the server cannot be made

2015-09-17 11:45 756 查看
Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server
cannot be made." UserInfo=0x7ffad9c498b0 {_kCFStreamErrorCodeKey=-9806, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, NSUnderlyingError=0x7ffadba9ae40 "An SSL error has occurred and a secure connection to the server cannot
be made.", NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=https://apitest.XXX.com/Login, NSErrorFailingURLStringKey=iption=An SSL error has occurred and a secure connection to the
server cannot be made., NSErrorFailingURLKey=https://apitest.XXX.com/Login, _kCFStreamErrorDomainKey=3}

在info.plist文件里面手动添加 NSAppTransportSecurity, NSAllowsArbitraryLoads,应该就可以了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: