[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET"
],
"AllowedOrigins": [
"http://localhost:3000"
],
"ExposeHeaders": [
"Content-Length"
]
}
]
This is the new way in which you need to provide the CORS configuration now.
You can refer to below docs for reference:
https://docs.aws.amazon.com/AmazonS3/latest/userguide/ManageCorsUsing.html