Today, with the release of Xcode 7, the app compiles a lot of warnings, and when the app runs, the following tips appear ...
The resource could not being loaded because the app transport security policy requires the use of a secure connection
The resource cannot be loaded because the application transmits a security policy that requires the use of a secure connection
IOS9 introduces a new feature App Transport Security (ATS) . Details: App Transport Security (ATS)
The new feature requires that the network access within the app must use HTTPS protocols. This means that the API interface must be HTTPS later
But now the company's projects are using HTTP protocols that use private encryption to keep data secure. It is not immediately possible to change the HTTPS protocol transfer.
Temporary workaround:
- Add a type in
NSAppTransportSecurity info.plist Dictionary .
NSAppTransportSecurityunder Add NSAllowsArbitraryLoads type, the Boolean value is set toYES
IOS9 appears the resource could not being loaded because the app transport security policy requires the use of a secure connect Ion Solution