About ATS SSL in iOS 9 release version

前端 未结 3 1832
自闭症患者
自闭症患者 2021-01-27 11:32

My apps use http, and doesn\'t update for iOS9 yet. Today I upgraded to iOS9 on my iPad, all my apps are still working using http. It seems Apple doesn\'t force https in iOS9 re

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-27 12:18

    iOS 9 forces connections that are using HTTPS to be TLS 1.2 to avoid recent vulnerabilities. In iOS 8 even unencrypted HTTP connections were supported, so that older versions of TLS didn't make any problems either. As a workaround, you can add this code snippet to your Info.plist:

    NSAppTransportSecurity  
        
      NSAllowsArbitraryLoads  
        
        
    

提交回复
热议问题