查看 CORS 策略 - AWS Elemental MediaStore

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

查看 CORS 策略

跨源资源共享 (CORS) 定义了在一个域中加载的客户端 Web 应用程序与另一个域中的资源交互的方式。

查看 CORS 策略(控制台)
  1. 打开 MediaStore 控制台,网址为 https://console.aws.amazon.com/mediastore/

  2. Containers (容器) 页面上,选择要查看其 CORS 策略的容器的名称。

    将出现容器详细信息页面,其中 CORS 策略位于 Container CORS policy (容器 CORS 策略) 部分中。

查看 CORS 策略 (AWS CLI)
  • 在 AWS CLI 中,使用 get-cors-policy 命令:

    aws mediastore get-cors-policy --container-name ExampleContainer --region us-west-2

    以下示例显示了返回值:

    { "CorsPolicy": [ { "AllowedMethods": [ "GET", "HEAD" ], "MaxAgeSeconds": 3000, "AllowedOrigins": [ "*" ], "AllowedHeaders": [ "*" ] } ] }