iOS 9: App Transport Security

97 Views Asked by At

I am trying to display the www.usta.com website in my application.

I added the following keys to my .plist and the site loads some of the data. However, it will not load any of the images.

Does anyone know why the images won't load?

enter image description here

I am testing on an iPhone 6 device that has iOS 9.3 installed.

2

There are 2 best solutions below

1
On BEST ANSWER

The website you're asking about uses Amazon S3 to serve images. This screenshot shows where the images are loading from:

Screenshot of USTA.com with Safari's Inspector Open

Since App Transport Security checks for a matching domain name, you need to add the s3 domain (amazonaws.com) to your plist.

3
On

My first try would be to simply allow arbitrary loads, unless you are wanting ONLY usta.com to be able to load. This should be the most simple way of doing it unless you are wanting to restrict which kinds of websites (http vs https) will load other than usta.

enter image description here