如何使 Google Cloud Storage CORS header 在 appspot URI 上保持一致
How to make Google Cloud Storage CORS header consistent over appspot URIs
我已将 CORS headers 设置到我在 Google 云存储上的自定义子域存储桶 json:
[
{
"origin": ["*"],
"responseHeader": ["Content-Type"],
"method": ["GET"],
"maxAgeSeconds": 3600
}
]
这非常适合我的子域:http://cdn.example.com/ however I also noticed you can access this bucket similar to Google AppEngine instances through: http://cdn.example.appspot.com/ and http://cdn-dot-example.appspot.com/。不幸的是,CORS headers 没有延续。在使用 gsutil cors set
使 CORS 设置传播到所有 URI 时,我是否遗漏了一个额外的参数?
在撰写本文时,appspot
镜像根本不应该提供云存储内容,因此您不应该依赖它。我收到了一封来自 Google Cloud Team 的电子邮件,其中提到了这一点。
我已将 CORS headers 设置到我在 Google 云存储上的自定义子域存储桶 json:
[
{
"origin": ["*"],
"responseHeader": ["Content-Type"],
"method": ["GET"],
"maxAgeSeconds": 3600
}
]
这非常适合我的子域:http://cdn.example.com/ however I also noticed you can access this bucket similar to Google AppEngine instances through: http://cdn.example.appspot.com/ and http://cdn-dot-example.appspot.com/。不幸的是,CORS headers 没有延续。在使用 gsutil cors set
使 CORS 设置传播到所有 URI 时,我是否遗漏了一个额外的参数?
在撰写本文时,appspot
镜像根本不应该提供云存储内容,因此您不应该依赖它。我收到了一封来自 Google Cloud Team 的电子邮件,其中提到了这一点。