gaia icon indicating copy to clipboard operation
gaia copied to clipboard

Set bucket CORS parameters on S3 bucket creation

Open kantai opened this issue 7 years ago • 2 comments

On creating a new S3 bucket, the gaia hub should probably set a permissive CORS property for the bucket, using:

https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#putBucketCors-property

This is so that apps can read from that bucket directly if necessary.

kantai avatar Dec 18 '18 14:12 kantai

What would be a good policy? Can you list an example here?

jcnelson avatar Feb 06 '19 16:02 jcnelson

I think this:

     AllowedMethods: [
        "GET", 
        "HEAD"
     ], 
     AllowedOrigins: [
        "*"
     ], 

kantai avatar Feb 06 '19 18:02 kantai