본문 바로가기
프로그래밍 놀이터/iOS

[ios] Solution for "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection"

by 돼지왕 왕돼지 2017. 10. 26.
반응형

 [ios] Solution for "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection"


-

Add following to "info.plist"

NSAppTransportSecurity NSDictionary

     NSAllowsArbitraryLoads BOOL YES



-

The reason why such error appears is that Apple decided to support only secure connection (https) by default.

So above solution is temporary, and it is recommended to change your server as https connection. 




반응형

댓글