The resource could not be loaded because the App Transport Security policy requires the use of a secure connection

前端 未结 21 2097
醉酒成梦
醉酒成梦 2020-11-22 11:37

I am facing the Problem when I have updated my Xcode to 7.0 or iOS 9.0. Somehow it started giving me the Titled error

\"The resource could not be load

21条回答
  •  梦谈多话
    2020-11-22 12:17

    Open your pList.info as Source Code and at bottom just before add following code,

     
        NSAppTransportSecurity
        
            NSExceptionDomains
            
                your.domain.com
                
                    NSIncludesSubdomains
                    
                    NSTemporaryExceptionAllowsInsecureHTTPLoads
                    
                    NSTemporaryExceptionMinimumTLSVersion
                    1.0
                    NSTemporaryExceptionRequiresForwardSecrecy
                    
                
            
        
        
    

    And finally change your.domain.com with your base Url. Thanks.

提交回复
热议问题