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

前端 未结 21 2096
醉酒成梦
醉酒成梦 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条回答
  •  清歌不尽
    2020-11-22 12:23

    In Swift 4 You can use

    ->Go Info.plist

    -> Click plus of Information properties list

    ->Add App Transport Security Settings as dictionary

    -> Click Plus icon App Transport Security Settings

    -> Add Allow Arbitrary Loads set YES

    Bellow image look like

提交回复
热议问题