title: Amazon S3 - Bucket Policy
body: <p>Having a heck of a time setting up a referer policy from my url to have access to an Amazon S3 bucket.</p>
  
  <p>I can get it to work with my <em>.myurl.com/</em> but anytime the request from a secure https request, my access is denied even with the wild card.</p>
  
  <p>Thanks</p>
  
  <p>Edit: Rushed my first initial post, here's more detail.</p>
  
  <p>I have a bucket policy on amazon s3 that only allows access if it comes from my url(s).</p>
  
  <pre><code>"aws:Referer": [
                      "*.myurl.com/*",
                      "*.app.dev:3000/*" ]
  </code></pre>
  
  <p>This referer policy correctly only allows connections from my dev environment and also my staging url if accessed via http. However, if the user is located at <a href="https://www.myurl.com/" rel="nofollow">https://www.myurl.com/</a>* they are denied access from Amazon.</p>
  
  <p>Is there a way to allow https connections to Amazon S3? Is it my Bucket Policy? I've tried hard coding the https url into the bucket policy, but this did not do the trick.</p>
  
  <p>Sorry about being overly brief.</p>