繼谷歌文檔時,使用時GoogleCloud存儲控制檯:使用Googe存儲的ArgumentException設置CORS配置
[email protected]:~$ cat cors-json-file.json
[
{
"origin": ["*"],
"method": ["GET"],
"maxAgeSeconds": 3600
}
]
然後我收到以下錯誤:
[email protected]:~$ gsutil cors set cors-json-file.json gs://mybucket
Setting CORS on gs://mybucket/...
ArgumentException: JSON CORS data could not be loaded from: [
{
"origin": ["*"],
"method": ["GET"],
"maxAgeSeconds": 3600
}
]
如果我刪除了同樣的錯誤「的方法「,」maxAgeSeconds「或添加」responseHeader「。
gsutil version == 4.19 – comte