Problem Description:
** App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app’s Info.plist file. **
Cause of the problem:
In IOS 9, apple changed the original HTTP protocol to the HTTPS protocol, using tls1.2 SSL to encrypt the request data
Problem solving:
In info.plist, open the nsallowsambitraryloads option
(1) Open info.plist and click open as > Source code, in the “& lt; dict>” Add the following code to:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
(2)or open info.plist click Open As > Properity List
add Key: App Transport Security Settings
In the sub-section: Add Key: Allow Arbitrary Loads, select Value: YES
Similar Posts:
- Alamofire iOS Sent HTTP Request Error: App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app’s Info.plist file.
- Solutions to nsurlsession / nsurlconnection HTTP load failed in IOS 9
- React Native: Possible unhandled promise rejection request fail
- [Solved] AFN NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9806)
- TypeError: Network request failed
- javax.net.ssl.SSLHandshakeException: No appropriate protocol [How to Solve]
- [Solved] TypeError: string indices must be integers, not str
- Thrift Call Error: No handlers could be found for logger “thrift.transport.TSocket”
- Python3 Use urlliburlopen error EOF occurred in violation of protocol (_ssl.c:841)
- [How to Solve] ‘dict’ object has no attribute ‘has_key’