NSURLSession/NSURLConnection HTTP load failed on iOS 9

前端 未结 13 1028
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 05:20

Tried to run my existing app on iOS9 but getting failure while using AFURLSessionManager.

__block NSURLSessionDataTask *task = [self.sessionMana         


        
13条回答
  •  孤街浪徒
    2020-11-22 05:51

    I found solution from here. And its working for me.

    Check this, it may help you.

    NSAppTransportSecurity
    
        NSExceptionDomains
             
                 myDomain.com
                        
                          
                          NSIncludesSubdomains
                          
                          
                          NSTemporaryExceptionAllowsInsecureHTTPLoads
                          
                          
                          NSTemporaryExceptionMinimumTLSVersion
                          TLSv1.1
                    
              
    
    

提交回复
热议问题