Wildcards on ATS Domain exceptions?

前端 未结 2 810
不知归路
不知归路 2021-01-16 09:58

In my production Xamarin apps, we retrieve a non-defined list of HLS playlist within differents domains. Is possible to use wildcards on the ATS exception dictionary?
I

2条回答
  •  青春惊慌失措
    2021-01-16 10:49

    While Apple highly suggests using the HTTPS protocol and secure communication to internet based information, there might be times that this isn't always possible. For example, if you are communicating with a 3rd party web service or using internet delivered ads in your app.

    If your Xamarin.iOS app must make a request to an insecure domain, the following changes to your app's Info.plist file will disable the security defaults that ATS enforces for a given domain:

    NSAppTransportSecurity
    
        NSExceptionDomains
        
            www.the-domain-name.com
            
                NSExceptionMinimumTLSVersion
                TLSv1.0
                NSExceptionRequiresForwardSecrecy
                
                NSExceptionAllowsInsecureHTTPLoads
                
                NSIncludesSubdomains
                
            
        
    
    

提交回复
热议问题