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