IOS9 workaround for HTTP not working properly

Source: Internet
Author: User

Upgrade Xcode 7.0 Bata today to discover network access failures.
Output error message

The
resource could not being loaded because the APP Transport Security policy requires the use of a secure connection.

After Google verified, IOS9 introduced the new feature app Transport Security (ATS). Details: App Transport Security (ATS)

The new feature requires that the network access within the app must use the HTTPS protocol.
But now the company's project is using the HTTP protocol, using private encryption to ensure data security. It is not immediately possible to change to HTTPS protocol transfer.

Finally, the following solutions are found:
    1. Add the Nsapptransportsecurity type dictionary in Info.plist.
    2. Add Nsallowsarbitraryloads type Boolean under Nsapptransportsecurity with the value set to Yes
Reference:
    • APP Transport Security Support aka Apps on IOS 9 don ' t work #4560
    • 711_networking_with_nsurlsession.pdf
Summarize:

Apple is stepping up its security controls, a move that shows Apple's focus on information security, and the fact that most applications transmit data unencrypted or privately encrypted, so that Apple begins to demand it from developers.
Although private encryption is somewhat secure, it is not a permanent one. With so many security experts around the world maintaining HTTPS security, using HTTPS early to ensure information security is the King! Also eliminates the security hidden danger of the private encryption protocol!

IOS9 workaround for HTTP not working properly

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.