Google cloud storage 单个文件的setcors/getcors
我试着做一个单一的文件,但我得到了Google cloud storage 单个文件的setcors/getcors,google-cloud-storage,Google Cloud Storage,我试着做一个单一的文件,但我得到了 CommandException: URI gs://bucket/cat.png must name a bucket for the setcors command gsutil getcors gs://bucket.commondatastorage.googleapis.com/cat.png CommandException: "getcors" command must specify a bucket 它(setcors/getcors)适用
CommandException: URI gs://bucket/cat.png must name a bucket for the setcors command
gsutil getcors gs://bucket.commondatastorage.googleapis.com/cat.png
CommandException: "getcors" command must specify a bucket
它(setcors/getcors)适用于整个bucket,但文档中的说法不同。是否需要更新我的gsutil实用程序?否,它只能在bucket级别指定。您是否在文档中有一个站点的URL,上面写着您可以在单个对象上设置它?。gsutil setcors my-cors-config.txt gs://cats/mycats.png。gsutil getcors gs://cats/mycats.png