Problems with the network error domain=kcferrordomaincfnetwork code=-1022 "The resource could not be loaded because th

Source: Internet
Author: User

Error domain=nsurlerrordomain code=-1022 "The resource could not to loaded because the APP transport security Policy Res the use of a secure connection. userinfo={nsunderlyingerror=0x7fce0c9ac400 {Error domain=kcferrordomaincfnetwork code=-1022 "The resource could not being Loaded because the APP transport security policy requires the use of a secure connection. " userinfo={nserrorfailingurlstringkey=http://www.baidu.com/, nslocalizeddescription=the resource could not being loaded Because the APP transport security policy requires the use of a secure connection., Nserrorfailingurlkey=http://www.baidu. com/}}, nserrorfailingurlstringkey=http://www.baidu.com/, nserrorfailingurlkey=http://www.baidu.com/, Nslocalizeddescription=the resource could not to loaded because the APP transport security policy requires the use of a SE Cure connection.}


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

The new feature requires that the network accessed within the app must use the HTTPS protocol.
But now the company's project is using the HTTP protocol, the use of private encryption to ensure data security. It is not immediately possible to change to HTTPS protocol transfer. Finally, find the following workaround: Add the Nsapptransportsecurity type dictionary to the info.plist. Add the Nsallowsarbitraryloads type Boolean under Nsapptransportsecurity, and the value is set to Yes


Original address: http://www.data321.com/c91d410d.html

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.