I'm compiling an Ionic (1.1.0) app in Xcode 7 for an iOS 9 device. However images coming through Cloudfront CDN are not appearing. The error message is:
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
I am sending https versions of the URL though for these images. For example https://abcxyx.cloudfront.net/...
I've tried the recommendation from here: https://www.stuartbreckenridge.com/app-transport-security-cloudfront/ But it did not work.
Just as a test I set NSAllowsArbitraryLoads to true and that did work. But of course that's not a production solution that will get accepted in the App Store.
Here is an excerpt from my plist:
<dict>
<key>[SUBDOMAIN].cloudfront.net</key>
<dict/>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
<key>NSTemporaryExceptionRequiresForwardSecrecy</key>
<false/>
Anyone seen this or have ideas?