Skip to content

Instantly share code, notes, and snippets.

@kumekay
Created September 22, 2021 11:59
Show Gist options
  • Save kumekay/e522150724f9a95a7d2ad0110c4fa33f to your computer and use it in GitHub Desktop.
Save kumekay/e522150724f9a95a7d2ad0110c4fa33f to your computer and use it in GitHub Desktop.
S3 apply CORS
aws s3api put-bucket-cors --bucket bucketname --cors-configuration file://cors.json
{
"CORSRules": [
{
"AllowedOrigins": ["*"],
"AllowedHeaders": ["*"],
"AllowedMethods": ["GET"],
"MaxAgeSeconds": 3000 }
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment