Xcode Ios App Transport Security
On apple platforms a networking feature called app transport security ats improves privacy and data integrity for all apps and app extensions.
Xcode ios app transport security. Updated the plist info to reflect the required settings note some of the previous names for keys have changed. Apple made a radical decision with ios 9 disabling all unsecured http traffic from ios apps as a part of app transport security. If you re working with a third party website.
Even though app transport security is enabled by default it can be helpful for example if you are working in a team to explicitly define the app transport security configuration by adding the following snippet to the target s info plist. I tried to add the following code to info plist but it still does not work. I disable ats entirerly when doing debug builds of my app setting nsallowsarbitraryloads to true.
All ios 9 and ios 10 devices. Temporary exceptions can be configured via your app s info plist file. App transport security xcode 7 1 ios 9 1.
Every request to a http endpoint switches to a https endpoint and the request fails as my local environment does not run on https. In xcode 9 2 this does not appear to be working anymore. Ats prevents accidental disclosure provides secure default behavior and is easy to adopt.
App transport security is enabled by default for any build created with xcode 7 and higher. If possible you should switch to https and use that instead but if that s not possible for some reason e g. It s enabled by default for new apps and enforces secure connections.
You should adopt ats as soon as possible regardless of whether you re creating a new app or. App transport security exceptions not working in xcode 9 2. App transport security ats is a privacy feature introduced in ios 9.