当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - HTTP call fails NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9843)

问题描述:

I am making HTTP REST API calls against my webserver that has a cert that doesn't match it's domain name.

I have already added the following code to my info.plist. If I set it to "false" I get error 9802, If I set it to "true" as shown below, I get 9843.

<key>NSAppTransportSecurity</key>

<dict>

<key>NSAllowsArbitraryLoads</key>

<true/>

</dict>

分享给朋友:
您可能感兴趣的文章:
随机阅读: