Tiếp theo tài liệu của Google, khi sử dụng GoogleCloud lưu trữ console:Googe lưu trữ ArgumentException khi thiết CORS cấu hình
[email protected]:~$ cat cors-json-file.json
[
{
"origin": ["*"],
"method": ["GET"],
"maxAgeSeconds": 3600
}
]
sau đó tôi nhận được lỗi sau:
[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
}
]
lỗi tương tự khi tôi loại bỏ "phương pháp "," maxAgeSeconds "hoặc thêm" responseHeader ".
gsutil version == 4.19 – comte