I have a page that displays deep zoom images that are stored in an Amazon S3 account. The image URLs are created like this in the controller:
imageUrl = "http://" + image.TileBucketNum + ".img.americanancestors.org/" + image.FileGuid.Trim().ToLower() + ".xml";
which produces something like "http://83.img.mywebsite.org/8985cb7f-0795-4ff6-bfd1-c2a27bf0963d.xml"
Once we installed an SSL certificate onto our site, the image pages stopped working because of a mixed content error:
'mywebsite.org' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://83.img.mywebsite.org/8985cb7f-0795-4ff6-bfd1-c2a27bf0963d.xml'.
I tried changing the image URL to https, but if I just change it to 'https://83.img.mywebsite.org/....' the image fails to load; if I try to go to that URL directly (which, with http, automatically downloads the image), I get a security warning page.
I tried the suggestion on this post and tried using this URL:
'https://s3.amazonaws.com/83.img.mywebsite.org/images/8985cb7f-0795-4ff6-bfd1-c2a27bf0963d.xml'
but that returns an "Access Denied" message. How can I load my S3 images on an HTTPS page?