How to shut down ATS in iOS9

Source: Internet
Author: User

Panda Pig • Patty original or translated works. Welcome reprint, Reprint please indicate the source.
If you feel that the writing is not good please more advice, if you feel good please support a lot of praise. Thank you! Hopy;)

The system security is added to the iOS9, and you will find that when you open a non-HTTPS URL by default, the following error occurs when reading network data:

notthetheofa secure connection.

This is due to the introduction of a new feature in IOS9: ATS (App Transport Security)

The new features require the Internet access in the app must use the HTTPS protocol, the specific content we can self-niang,

We're just explaining how to turn off this feature so that it can access URLs that start with HTTP.

Close is simple, open the project's Info.plist file, add a dictionary type to the project app Transport Security Settings, then add a key:allow arbitrary Loads in it with a value of Yes, As shown in the following:

Then compile and run the app to:

How to shut down ATS in iOS9

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.