I am uploading files from my react app to S3 using Pre Signed URLs the Bucket it self is private and only enabled CORS for all domains (for the dev env).
How ever when the axios post tries to upload a file i am seeing the No "Access-Control-Allow-Origin" header present Error. The pre-flight options request is throwing this error.
I am trying this from my local machine.
Here is the CORS Configuration i have. I have tried the wild card '*' for AllowedOrigin with no luck.
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>http://localhost:3000</AllowedOrigin>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<MaxAgeSeconds>300000</MaxAgeSeconds>
<AllowedHeader>authorization</AllowedHeader>
</CORSRule>
</CORSConfiguration>
Appreciate any help.