The resource could not be loaded because the App Transport Security policy requires the use of a secure connection

前端 未结 21 1982
醉酒成梦
醉酒成梦 2020-11-22 11:37

I am facing the Problem when I have updated my Xcode to 7.0 or iOS 9.0. Somehow it started giving me the Titled error

\"The resource could not be load

21条回答
  •  Happy的楠姐
    2020-11-22 12:27

    If you are using Xcode 8.0 to 8.3.3 and swift 2.2 to 3.0

    In my case need to change in URL http:// to https:// (if not working then try)

    Add an App Transport Security Setting: Dictionary.
    Add a NSAppTransportSecurity: Dictionary.
    Add a NSExceptionDomains: Dictionary.
    Add a yourdomain.com: Dictionary.  (Ex: stackoverflow.com)
    
    Add Subkey named " NSIncludesSubdomains" as Boolean: YES
    Add Subkey named " NSExceptionAllowsInsecureHTTPLoads" as Boolean: YES
    

提交回复
热议问题