2017-07-13 18 views
1

Google Cloud Storage CORSリクエストでリクエストヘッダーを許可する方法を理解できません。リクエストヘッダー用のgoogle-cloud-storage CORS

文書によれば、the Range HTTP header is supportedによるが、クライアント側のXMLHttpRequestsで許可する方法が見つからない。それは結局のところ

$ gsutil cors get gs://df-ai-movies 
[{"maxAgeSeconds": 3600, "method": ["GET", "HEAD", "OPTIONS"], "origin": ["*"], "responseHeader": ["Date"]}] 

Example page

答えて

1

responseHeaderキーが両方応答リクエストヘッダのために使用されます。

は、ここに私のCORSの設定です。

私の新しい設定は次のようになります。

[{"maxAgeSeconds": 3600, "method": ["GET", "HEAD", "OPTIONS"], "origin": ["*"], "responseHeader": ["Date", "Range"]}] 
関連する問題