App Transport Security (ATS) is a new security feature introduced in iOS. It is enabled by default and enforces secure connections. We can create exceptions from this feature for our app through the info.plist file. Copy paste the following code inside info.plist file.(Open it as source code)
We can directly add exceptions in info.plist file by opening it as property list. Click open the info.plist file. Right click and add a new row. Using the dropdown select App Transport Security Settings. Then use the drop down in it to add Allow ArbitraryLoads and set its boolean value to YES.