Apple introduced App Transport Security[1] with iOS 9.
The setting is configured in your app's Info.plist[2].
[1] https://developer.apple.com/library/content/releasenotes/Gen...
[1] https://developer.apple.com/library/content/releasenotes/Gen...
[0] Of course you can use the blanket NSAllowsArbitraryLoads to allow plain HTTP everywhere.