"IOS" App Transport Security

Source: Internet
Author: User

IOS9 new app Transport Security (ATS) features, mainly to the original request when the use of HTTP, all to the TLS1.2 protocol for transmission. This also means that all HTTP protocols are forced to use the HTTPS protocol for transmission.

The error message is as follows:

APP Transport Security has blocked a cleartext http (http://) resource load since it's insecure. Temporary exceptions can be configured via your app ' s info.plist file.

Workaround:

1. Search for Info.plist in the Filter and select info.plist for editing:

2. Add the information as described above, and the correct changes will look like this, note that the type nsapptransportsecurity is dictionary,nsallowsarbitraryloads as Boolean, as follows:

3. Note: The unit test also has a info.plist below, modifying that file is not useful!

PS: The first addition may not be effective, and then deleted the retry several times before the line.

Reference:

1190000002933776

http://my.oschina.net/vimfung/blog/494687

"IOS" App Transport Security

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.