Skip to content

Setting up Amazon S3

William Silversmith edited this page Mar 14, 2019 · 5 revisions

CORS

cors-s3.json

{
    "CORSRules": [
        {
            "AllowedHeaders": [
                "*"
            ], 
            "MaxAgeSeconds": 600, 
            "AllowedMethods": [
                "GET"
            ], 
            "AllowedOrigins": [
                "*"
            ]
        }
    ]
}
aws s3api put-bucket-cors --bucket $BUCKET --cors-configuration file://$HOME/Desktop/cors-s3.json
Clone this wiki locally