【发布时间】:2016-09-13 22:51:56
【问题描述】:
我已使用此 json 在 Google Cloud Storage 上将 CORS 标头设置为我的自定义子域存储桶:
[
{
"origin": ["*"],
"responseHeader": ["Content-Type"],
"method": ["GET"],
"maxAgeSeconds": 3600
}
]
这非常适合我的子域:http://cdn.example.com/,但我也注意到您可以通过以下方式访问此存储桶,类似于 Google AppEngine 实例:http://cdn.example.appspot.com/ 和 http://cdn-dot-example.appspot.com/。不幸的是,CORS 标头没有保留。在使用 gsutil cors set 使 CORS 设置传播到所有 URI 时,我是否遗漏了其他参数?
【问题讨论】: