hardgsutil

Apply a CORS configuration file to a Cloud Storage bucket

command

gsutil cors set cors.json gs://BUCKET_NAME

also accepted

gsutil cors setgsutil cors set cors.json

Command breakdown

Part of the Cloud Storage CLI (gsutil) — Cloud Storage gsutil category.

gsutilcorssetcors.jsongs://BUCKET_NAME

Test your recall — not just your reading.

Practice with interactive quiz →