title: Getting CORS error while uploading files to Amazon S3 using presigned url
body: <p>I am trying to upload a file to Amazon S3 using the angular client. I have generated Presigned URL using NodeJs application server. While uploading a file to presigned URL, I am getting an Error as: </p>
  
  <p>"Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="http://localhost:4200" rel="noreferrer">http://localhost:4200</a>' is therefore not allowed access."</p>
  
  <p>I have added following CORS configuration to my bucket permissions.</p>
  
  <pre><code>&lt;CORSConfiguration&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;HEAD&lt;/AllowedMethod&gt;
  &lt;MaxAgeSeconds&gt;3000&lt;/MaxAgeSeconds&gt;
  &lt;AllowedHeader&gt;*&lt;/AllowedHeader&gt;
  &lt;/CORSRule&gt;
  &lt;/CORSConfiguration&gt;
  </code></pre>