Sandy D.
Sandy D.

Reputation: 3146

iOS 9: App Transport Security

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.

Upvotes: 1

Views: 89

Answers (2)

Moshe
Moshe

Reputation: 58107

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.

Upvotes: 2

Makapuu
Makapuu

Reputation: 21

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

Upvotes: 0

Related Questions