title: AWS S3 Bucket returning 403 forbiden
body: <p>I have an application in Django and I put it my static files in a bucket on AWS S3. However, when I try to connect in my application the bucket S3 return 403 forbidden for static files.</p>
  
  <p>My bucket has a public access configurated for it.</p>
  
  <p><a href="https://i.stack.imgur.com/AZZoa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AZZoa.png" alt="enter image description here"></a></p>
  
  <p>If I try to access the file directly an XML error is returned like:</p>
  
  <p><strong>This XML file does not appear to have any style information associated with it. The document tree is shown below.</strong> </p>
  
  <pre><code>&lt;Error&gt;
  &lt;Code&gt;AccessDenied&lt;/Code&gt;
  &lt;Message&gt;Access Denied&lt;/Message&gt;
  &lt;RequestId&gt;2A64DBA5BD88AC1C&lt;/RequestId&gt;
  &lt;HostId&gt;
  K7NHlv7xhPAL6626LCHLayoR4BauqARf6KaTtKUYKQsakNqQ1LL6RnuIwxUqjMP0q6UjMmiW7Yw=
  &lt;/HostId&gt;
  &lt;/Error&gt;
  </code></pre>
  
  <p>My bucket has the files:</p>
  
  <p><a href="https://i.stack.imgur.com/u1nng.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u1nng.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/s4YVk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s4YVk.png" alt="enter image description here"></a></p>
  
  <p>I tried to change settings putting AWS_DEFAULT_ACL like 'public', 'private' and None, but the problem persists...</p>
  
  <p>Obs.: My app is in Heroku.</p>
  
  <p>How can I solve this problem?</p>