Skip to content

Instantly share code, notes, and snippets.

@jsoma
Last active May 11, 2023 09:21
Show Gist options
  • Save jsoma/5830e8b7dc083f12298d4f5f8c72d650 to your computer and use it in GitHub Desktop.
Save jsoma/5830e8b7dc083f12298d4f5f8c72d650 to your computer and use it in GitHub Desktop.
CORS public access (new JSON version)
{
"Version":"2012-10-17",
"Statement":[
{
"Sid":"PublicRead",
"Effect":"Allow",
"Principal": "*",
"Action":["s3:GetObject","s3:GetObjectVersion"],
"Resource":["arn:aws:s3:::YOUR_BUCKET_NAME_GOES_HERE/*"]
}
]
}
@Sebastian2908-2007
Copy link

[
{
"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