S3 cors errors (sometimes)

I'm using S3 for file uploads, but sometimes (not always) i still get CORS errors, i've set the following configuration:
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"HEAD",
"GET",
"PUT",
"POST",
"DELETE"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": []
}
]
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"HEAD",
"GET",
"PUT",
"POST",
"DELETE"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": []
}
]
3 Replies
giuseppemastrodonato
Hi! Did you solve it?
Joey .
Joey .2y ago
Had this issue for a while but seems to have been fixed You should check your s3 provider too
Wiebe
WiebeOP2y ago
I've fixed it. had something todo with the cloudfront settings, can't remember exactly anymore cloudfront cached the cors headers

Did you find this page helpful?