バケットの現在のCORSの設定を取得する
gsutil cors get gs://example
バケットにCORSの設定JSONを食わせる
gsutil cors set cors-json-file.json gs://example
CORS設定のJSONファイル
[
{
"origin": [
"http://localhost:3000",
"http://www.hoge.com",
"https://www.hoge.com"
],
"responseHeader": [
"Content-Type",
"Accept",
"X-Requested-With",
"Access-Control-Allow-Credentials"
],
"method": [
"GET",
"OPTIONS"
],
"maxAgeSeconds": 60
}
]