I'm facing problem connection to API with using IP address.
Even I had add the following code to plist, it still show error as below:
"http://xx3.xx.xx8.xx7/xxx/xxx/ error: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection."
This is the code I add to the plist
<key>xx3.xx.xx8.xx7</key>
<dict>
<key>NSThirdPartyExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
<false/>
<key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</key>
Best Answer
Document Allowing Insecure Connection to a Single Server here. So you must add
NSAppTransportSecurity
to your info.plist file in truth way like flowing (to show Info.plist in source, in Xcode right click to Info.plist "Open As"->"Source Code")To configure a per-domain exception:
after edit Infor.plist file look like following:
Or disable ATS:
after edit Infor.plist file look like following: