【问题标题】:How to make Google Cloud Storage CORS header consistent over appspot URIs如何使 Google Cloud Storage CORS 标头在 apppot URI 上保持一致
【发布时间】: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 时,我是否遗漏了其他参数?

【问题讨论】:

    标签: google-cloud-storage


    【解决方案1】:

    在撰写本文时,appspot 镜像根本不应该提供 Cloud Storage 内容,因此您不应依赖它。我收到了一封来自 Google Cloud 团队的电子邮件。

    【讨论】:

      猜你喜欢
      • 2017-12-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-03
      • 1970-01-01
      • 2020-04-12
      • 2016-01-19
      • 2020-04-17
      相关资源
      最近更新 更多