📜  gcloud storage cors - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:30.129000             🧑  作者: Mango

代码示例1
// 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://...