Skip to content

Instantly share code, notes, and snippets.

@atomize
Created October 16, 2017 01:52
Show Gist options
  • Save atomize/b4caf782b75b399e5f4b48f8a19807f4 to your computer and use it in GitHub Desktop.
Save atomize/b4caf782b75b399e5f4b48f8a19807f4 to your computer and use it in GitHub Desktop.
Allow Dangerous Public JSON from S3
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<MaxAgeSeconds>5000</MaxAgeSeconds>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
{
"Version": "2008-10-17",
"Id": "Policy1397632521960",
"Statement": [
{
"Sid": "Stmt1397633323327",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::popost/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment