title: Can't access Amazon S3 dzi image files over HTTPS
body: <p>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:</p>
  
  <pre><code>imageUrl = "http://" + image.TileBucketNum + ".img.americanancestors.org/" + image.FileGuid.Trim().ToLower() + ".xml";
  </code></pre>
  
  <p>which produces something like "<a href="http://83.img.mywebsite.org/8985cb7f-0795-4ff6-bfd1-c2a27bf0963d.xml" rel="nofollow noreferrer">http://83.img.mywebsite.org/8985cb7f-0795-4ff6-bfd1-c2a27bf0963d.xml</a>"</p>
  
  <p>Once we installed an SSL certificate onto our site, the image pages stopped working because of a mixed content error: </p>
  
  <blockquote>
    <p>'mywebsite.org' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '<a href="http://83.img.mywebsite.org/8985cb7f-0795-4ff6-bfd1-c2a27bf0963d.xml" rel="nofollow noreferrer">http://83.img.mywebsite.org/8985cb7f-0795-4ff6-bfd1-c2a27bf0963d.xml</a>'. </p>
  </blockquote>
  
  <p>I tried changing the image URL to https, but if I just change it to '<a href="https://83.img.mywebsite.org/" rel="nofollow noreferrer">https://83.img.mywebsite.org/</a>....' 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. </p>
  
  <p>I tried the suggestion on <a href="https://stackoverflow.com/questions/11201316/how-to-configure-ssl-for-amazon-s3-bucket">this post</a> and tried using this URL:</p>
  
  <p>'<a href="https://s3.amazonaws.com/83.img.mywebsite.org/images/8985cb7f-0795-4ff6-bfd1-c2a27bf0963d.xml" rel="nofollow noreferrer">https://s3.amazonaws.com/83.img.mywebsite.org/images/8985cb7f-0795-4ff6-bfd1-c2a27bf0963d.xml</a>'</p>
  
  <p>but that returns an "Access Denied" message. How can I load my S3 images on an HTTPS page?</p>