This is an old revision of the document!
CORS
Get CORS
gcloud storage buckets describe gs://bucket --format="default(cors_config)"
Set CORS
- cors.json
[ { "origin": ["*"] } ]
gcloud storage buckets update gs://bucket --cors-file=cors.json
Clear CORS
gcloud storage buckets update gs://bucket --clear-cors