Skip to content

Enable cors on buckets

Harsimran Singh Maan edited this page Mar 30, 2021 · 2 revisions

https://cloud.google.com/storage/docs/cross-origin#Configuring-CORS-on-a-Bucket

[
  {
    "origin": ["domain"],
    "method": ["GET"],
    "maxAgeSeconds": 3600
  }
]
gsutil cors set cors.json gs://bucket-name
Clone this wiki locally