IOS 9 Switch to HTTPS with HTTP

Source: Internet
Author: User

IOS9 all HTTP requests to https: The IOS9 system sends a network request that uses TLS 1.2 SSL uniformly. With the TLS 1.2 protocol, the purpose is to enforce enhanced data access security, and related network requests under the System Foundation framework will no longer default to unsecured network protocols such as Http, and TLS 1.2 is used by default. The server therefore needs to be updated to parse the relevant data. If not updated, you can reverse the unsecured network request by declaring it in Info.plist.

Scenario One: Immediately let the company's server upgrade use TLS 1.2

Scenario Two: Although Apple does not recommend it, it can still allow the app to access the specified HTTP, or even arbitrary HTTP, by declaring in Info.plist that the back-to-security network request will be reversed.

The system will tell us that the request cannot be made directly using HTTP, and a new configuration for controlling ATS is required at Info.plist:

< Key > Nsapptransportsecurity</key><dict>     <key>nsallowsarbitraryloads</key>    <true/></dict>

IOS 9 Switch to HTTPS with HTTP

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.