Setting an open CORS policy on an S3 bucket Clark Wilkins, Simplexable 2022.01.18
I was working on implementing file uploads to S3 in a React project. One of the setup steps is to implement a cross-border CORS configuration. Here's how you get this done.
[ {
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET",
"HEAD", "PUT",
"POST"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": [],
"MaxAgeSeconds": 3000
}
]
There's a good explanation of this here.