Reputation: 564
I have configured my IHS to enable the server requirement for ATS as the following:
Worklight 6.2 iOS binary issue with MobileFirst 7.1
I build and complied my app using xCode 7.3 which adds the App transport security to plist.
The problem is when I follow this URL to do it as production configuration, I'm getting an error:
My plist config:
<key>NSAppTransportSecurity</key>
<dict>
<key>protocol</key>
<string>https</string>
<key>port</key>
<string>443</string> // since my connection through Datapower I'm putting 443
</dict>
Error:
2016-06-07 11:58:09.011 ManulifeBankMobile[24781:382306] 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.
2016-06-07 11:58:09.047 ManulifeBankMobile[24781:382280] CFNetwork SSLHandshake failed (-9824)
2016-06-07 11:58:09.048 ManulifeBankMobile[24781:382280] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824)
The only configuration working is (But I don't need to do as it is insecure):
<key>NSAppTransportSecurity</key>
<dict>
<!--Include to allow all connections (DANGER)-->
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
Am I missing something?
Upvotes: 0
Views: 78
Reputation: 44516
It sounds like your worklight.plist is pointing to a HTTP host.
Make sure that the address for the MobileFirst Server in the worklight.plist file is not in HTTP.
Upvotes: 0