SwiftでRequestしようとしたらThe resource could not be loaded because the App Transport Security policy requires the use of a secure connection.

 

 

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

解決方法

スクリーンショット 2017-08-09 11.48.43.png

Info.plist

App Transport Security Settings

Allow Arbitrary Loads

YES