Last active
May 11, 2023 09:21
-
-
Save jsoma/5830e8b7dc083f12298d4f5f8c72d650 to your computer and use it in GitHub Desktop.
CORS public access (new JSON version)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version":"2012-10-17", | |
"Statement":[ | |
{ | |
"Sid":"PublicRead", | |
"Effect":"Allow", | |
"Principal": "*", | |
"Action":["s3:GetObject","s3:GetObjectVersion"], | |
"Resource":["arn:aws:s3:::YOUR_BUCKET_NAME_GOES_HERE/*"] | |
} | |
] | |
} |
This worked for me. Thanks
[ { "AllowedHeaders": [ "*" ], "AllowedMethods": [ "GET", "PUT", "POST", "DELETE" ], "AllowedOrigins": [ "*" ], "ExposeHeaders": [ "x-amz-server-side-encryption", "x-amz-request-id", "x-amz-id-2" ], "MaxAgeSeconds": 3000 } ]
[
{
"AllowedHeaders": [
""
],
"AllowedMethods": [
"GET",
"PUT",
"POST",
"DELETE"
],
"AllowedOrigins": [
""
],
"ExposeHeaders": [
"x-amz-server-side-encryption",
"x-amz-request-id",
"x-amz-id-2"
],
"MaxAgeSeconds": 3000
}
]
July 2022 this works!!!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it is only working in some browsers, is there a solution for this?