CmdID / aws / aws mediastore
aws mediastore get-cors-policy
Returns the cross-origin resource sharing (CORS) configuration information that is set for the container. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To view a CORS policy
The following get-cors-policy example displays the cross-origin resource sharing (CORS) policy that is assigned to the specified container.
aws mediastore get-cors-policy --container-name ExampleContainerIdentify--container-nameThe name of the container that the policy is assigned to.Its output
{
"CorsPolicy": [
{
"AllowedMethods": [
"GET",
"HEAD"
],
"MaxAgeSeconds": 3000,
"AllowedOrigins": [
""
],
"AllowedHeaders": [
""
]
}
]
}Options
--container-nameThe name of the container that the policy is assigned to.