IOS 9/10 enforces access to the network using HTTPS, and uses the information that the third-party SDK application needs to configure

Source: Internet
Author: User

From January 01, 2017, Apple will completely prohibit the use of HTTP to access the network.

On-line grilled some resources, the solution is still there, but are not sure whether it can be audited, after all, practice is the only test of truth standards.

Follow up if you are successful on the go and share it.

If SHARESDK is used in the application, please refer to (here).

If you have added friends to share in your app, please refer to (here).

Of course there is a more comprehensive exposition of the Great God, please refer to (here).

To summarize, the solution is to add configuration information to the project's. plist file, which is configured as follows: Add the following to the Nsapptransportsecurity dictionary

1<dict>2<key>NSExceptionDomains</key>3<dict>4             //Facebook5<key>akamaihd.net</key>6<dict>7<key>NSExceptionAllowsInsecureHTTPLoads</key>8<true/>9<key>NSExceptionRequiresForwardSecrecy</key>Ten<false/> One<key>NSIncludesSubdomains</key> A<true/> -</dict> -<key>fbcdn.net</key> the<dict> -<key>NSExceptionAllowsInsecureHTTPLoads</key> -<true/> -<key>NSExceptionRequiresForwardSecrecy</key> +<false/> -<key>NSIncludesSubdomains</key> +<true/> A</dict> at<key>facebook.com</key> -<dict> -<key>NSExceptionAllowsInsecureHTTPLoads</key> -<true/> -<key>NSExceptionRequiresForwardSecrecy</key> -<false/> in<key>NSIncludesSubdomains</key> -<true/> to</dict> +             //Twitter -<key>twitter.com</key> the<dict> *<key>NSExceptionAllowsInsecureHTTPLoads</key> $<true/>Panax Notoginseng<key>NSExceptionRequiresForwardSecrecy</key> -<string>no</string> the<key>NSIncludesSubdomains</key> +<true/> A</dict> the             //Sina +<key>sina.com.cn</key> -<dict> $<key>NSExceptionMinimumTLSVersion</key> $<string>tlsv1.0</string> -<key>NSExceptionAllowsInsecureHTTPLoads</key> -<true/> the<key>NSExceptionRequiresForwardSecrecy</key> -<false/>Wuyi<key>NSIncludesSubdomains</key> the<true/> -</dict> Wu<key>weibo.cn</key> -<dict> About<key>NSExceptionMinimumTLSVersion</key> $<string>tlsv1.0</string> -<key>NSExceptionAllowsInsecureHTTPLoads</key> -<true/> -<key>NSExceptionRequiresForwardSecrecy</key> A<false/> +<key>NSIncludesSubdomains</key> the<true/> -</dict> $<key>weibo.com</key> the<dict> the<key>NSExceptionMinimumTLSVersion</key> the<string>tlsv1.0</string> the<key>NSExceptionAllowsInsecureHTTPLoads</key> -<true/> in<key>NSExceptionRequiresForwardSecrecy</key> the<false/> the<key>NSIncludesSubdomains</key> About<true/> the</dict> the             //QQ, the<key>qq.com</key> +<dict> -<key>NSExceptionAllowsInsecureHTTPLoads</key> the<true/>Bayi<key>NSExceptionRequiresForwardSecrecy</key> the<false/> the<key>NSIncludesSubdomains</key> -<true/> -</dict> the</dict> the</dict>

IOS 9/10 enforces access to the network using HTTPS, and uses the information that the third-party SDK application needs to configure

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.