HTTPS request in iOS 9 : NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)

后端 未结 6 1811
轮回少年
轮回少年 2020-12-05 15:25

I\'m updating my app to accommodate Apple\'s new ATS. Without any changes to the Plist-Info,the following code throws an error at sendSynchronousRequest() in a

6条回答
  •  星月不相逢
    2020-12-05 16:03

    According to this: https://forums.developer.apple.com/message/36842#36842

    The correct exception to fix HTTP load failed (kCFStreamErrorDomainSSL, -9802) is:

    NSExceptionAllowsInsecureHTTPLoads 
    

提交回复
热议问题