CORS Header
This setting is available in small, large, VOD and streaming resource types.
Method | URL |
---|---|
PUT | https://cloud.medianova.com/api/v1/cdn/{organization_uuid}/resource/{resource_id} |
Parameters | Description | Type | Required |
---|---|---|---|
organization_uuid | The created organization in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes |
resource_uuid | The created resource in Medianova Cloud Panel unit ID value. Path parameter. | String | Yes |
status_cors_header | The values of the status_cors_header must be any of the; “true”, “false”. | Boolean | Yes |
cors_domains | When enabled, this feature enables CORS operation from everywhere. You can also define specific domains to allow CORS. If status_cors_header is true, cors_domains is required. | String | Yes |
Payload
{
"resource_uuid": "****-****-*****-****",
"status_cors_header": "on",
"cors_domains": [
"domain1.com",
"domain2.com"
]
}