Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

gcloud storage cors

// create file cors.json, containing:
[
  {
    "origin": ["http://origin1.example.com"], // or ["*"] to allow all
    "responseHeader": ["Content-Type"],
    "method": ["GET"],
    "maxAgeSeconds": 3600
  }
]// then
$ gsutil cors set ./cors.json gs://<bucket_name>...
 
PREVIOUS NEXT
Tagged: #gcloud #storage #cors
ADD COMMENT
Topic
Name
2+2 =