title: AWS S3 bucket , uploaded image files are accessible only after setting individual object permission to public manually
body: <p>I have created a bucket &amp; after image uploaded from my website development server it store as XML file,  If I go to bucket and make it public manually it becomes available to all and I am able to get that file.</p>
  <p>What might be the problem here ?</p>
  <p>setting each uploaded file to public as below
  <a href="https://i.stack.imgur.com/cln7g.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cln7g.jpg" alt="enter image description here" /></a></p>
  <p>I set <code>access= objects can be public</code></p>
  <pre><code>Block all public access = False
  </code></pre>
  <p>CORS CONFIGURATION</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;CORSConfiguration xmlns=&quot;http://s3.amazonaws.com/doc/2006-03-01/&quot;&gt;
  &lt;CORSRule&gt;
      &lt;AllowedOrigin&gt;*&lt;/AllowedOrigin&gt;
      &lt;AllowedMethod&gt;GET&lt;/AllowedMethod&gt;
      &lt;AllowedMethod&gt;POST&lt;/AllowedMethod&gt;
      &lt;AllowedMethod&gt;PUT&lt;/AllowedMethod&gt;
      &lt;AllowedMethod&gt;DELETE&lt;/AllowedMethod&gt;
      &lt;ExposeHeader&gt;ETag&lt;/ExposeHeader&gt;
      &lt;ExposeHeader&gt;x-amz-meta-custom-header&lt;/ExposeHeader&gt;
      &lt;AllowedHeader&gt;*&lt;/AllowedHeader&gt;
  &lt;/CORSRule&gt;
  &lt;/CORSConfiguration&gt;
  </code></pre>
  <p>INITIAL ERROR WHEN TRYING TO ACCESS THE UPLOADED IMAGE</p>
  <pre><code>This XML file does not appear to have any style information associated with it. The document tree is shown below.
  &lt;Error&gt;
  &lt;Code&gt;InvalidRequest&lt;/Code&gt;
  &lt;Message&gt;The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.&lt;/Message&gt;
  &lt;RequestId&gt;XX&lt;/RequestId&gt;
  &lt;HostId&gt;XXZjXX&lt;/HostId&gt;
  &lt;/Error&gt;
  </code></pre>