diff --git a/pillar/application/utils/gcs.py b/pillar/application/utils/gcs.py index e9e2aeef..23b336c7 100644 --- a/pillar/application/utils/gcs.py +++ b/pillar/application/utils/gcs.py @@ -35,11 +35,19 @@ class GoogleCloudStorageBucket(object): self.bucket = gcs.bucket(bucket_name) # Hardcode the bucket location to EU self.bucket.location = 'EU' + # Optionally enable CORS from * (currently only used for vrview) + # self.bucket.cors = [ + # { + # "origin": ["*"], + # "responseHeader": ["Content-Type"], + # "method": ["GET", "HEAD", "DELETE"], + # "maxAgeSeconds": 3600 + # } + # ] self.bucket.create() self.subdir = subdir - def List(self, path=None): """Display the content of a subdir in the project bucket. If the path points to a file the listing is simply empty.