App Transport Security ATS

suggest change

Parameters

Parameter Details
NSAppTransportSecurity Configure ATS
NSAllowsArbitraryLoads Set to YES to disable ATS everywhere. In iOS 10 and later, and macOS 10.12 and later, this key is ignored if any of these keys are also present: NSAllowsArbitraryLoadsInMedia, NSAllowsArbitraryLoadsInWebContent, NSAllowsLocalNetworking
NSAllowsArbitraryLoadsInMedia Set to YES to disable ATS for media loaded with AV Foundation. (iOS 10+, macOS 10.12+)
NSAllowsArbitraryLoadsInWebContent Set to YES to disable ATS in web views (WKWebView, UIWebView, WebView) without affecting NSURLSession. (iOS 10+, macOS 10.12+)
NSAllowsLocalNetworking Set to YES to disable ATS for unqualified domains and .local domains. (iOS 10+, macOS 10.12+)
NSExceptionDomains Configure exceptions for specific domains
NSIncludesSubdomains Set to YES to apply the exceptions to all subdomains of the selected domain
NSRequiresCertificateTransparency Set to YES to require valid, signed Certificate Transparency timestamps for the domain’s server certificates. (iOS 10+, macOS 10.12+)
NSExceptionAllowsInsecureHTTPLoads Set to YES to allow HTTP on the selected domain
NSExceptionRequiresForwardSecrecy Defaults to YES. Set to NO to disable forward secrecy and accept more ciphers
NSExceptionMinimumTLSVersion Defaults to TLSv1.2. Possible values: TLSv1.0, TLSv1.1, TLSv1.2
NSThirdPartyExceptionAllowsInsecureHTTPLoads Same as NSExceptionAllowsInsecureHTTPLoads, for domains you do not control
NSThirdPartyExceptionRequiresForwardSecrecy Same as NSExceptionRequiresForwardSecrecy, for domains you do not control
NSThirdPartyExceptionMinimumTLSVersion Same as NSExceptionMinimumTLSVersion, for domains you do not control

Remarks

The App Transport Security is a security feature in iOS and macOS. It prevents apps from establishing unsecured connections. By default, apps can only use secure HTTPS connections.

If an app needs to connect to a server via HTTP, exceptions must be defined in the Info.plist. (see the examples for more information about that)

Note: At WWDC 2016 Apple said App Review would require a justification for ATS exceptions. Exceptions in Info.plist were not banned outright, and apps with them can still be submitted. (Source: WWDC 2016 - Session 706)

More information on the App Transport Security configuration can be found in the CocoaKeys Documentation.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents