kCFStreamErrorDomainSSL, -9802 when connecting to a server by IP address through HTTPS in iOS 9

后端 未结 5 1894
暗喜
暗喜 2020-11-28 16:03

We have an iOS app that connects to our server through HTTPS. When the app is built with the new iOS 9 SDK and ran under iOS 9, the following error occurs:

N         


        
5条回答
  •  一生所求
    2020-11-28 16:11

    You can add this in your "Info.plist" file, it will allow non secured connections:

    NSAppTransportSecurity
    
        NSAllowsArbitraryLoads
        
    
    

提交回复
热议问题