Headers
This setting is available in small, large, VOD and streaming resource types.
UUID of the organization
UUID of the resource
Enable or disable CORS headers.
onPossible values: List of domains for CORS.
["domain1.com","domain2.com"]Successfully updated the CORS header settings for the resource.
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 72
{
"status_cors_header": "on",
"cors_domains": [
"domain1.com",
"domain2.com"
]
}Successfully updated the CORS header settings for the resource.
{
"status": true,
"data": {}
}This setting is available for all resource types.
UUID of the organization
UUID of the resource
Enable or disable custom headers for the resource.
trueSuccessfully updated custom headers for the resource.
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 193
{
"status_custom_headers": true,
"custom_headers": [
{
"type": "request_header",
"key": "Key1",
"value": "Value1"
},
{
"type": "add_header",
"key": "Key2",
"value": "Value2"
},
{
"type": "hide_header",
"key": "Key3"
}
]
}Successfully updated custom headers for the resource.
{
"status": true,
"data": {}
}This setting is available for all resource types.
UUID of the organization
UUID of the resource
Enable or disable the X-CDN header for the resource.
trueThe name of the X-CDN header.
test.headerSuccessfully updated X-CDN header for the resource.
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"status_x_cdn_header": true,
"x_cdn_header": "test.header"
}Successfully updated X-CDN header for the resource.
{
"status": true,
"data": {}
}This setting is available for all resource types.
UUID of the organization
UUID of the resource
Successfully updated Origin Host Header for the resource.
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 68
{
"origin_host_header": {
"status": true,
"header": "domain.example.com"
}
}Successfully updated Origin Host Header for the resource.
{
"status": true,
"data": {}
}This setting is available in small, large and dynamic(aksela) resource types.
UUID of the organization
UUID of the resource
Enable or disable HTTP Strict Transport Security (HSTS) protection for the resource.
trueMaximum time in seconds for which the HSTS protection is applied.
7776000Whether to include subdomains for the HSTS protection.
trueWhether to include the resource in the preload list for HSTS.
trueSuccessfully updated HSTS protection settings for the resource.
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"status_hsts_protection": true,
"max_age_time": "7776000",
"include_sub_domains": true,
"preload": true
}Successfully updated HSTS protection settings for the resource.
{
"status": true,
"data": {}
}This setting is available in small, large and dynamic(aksela) resource types.
UUID of the organization
UUID of the resource
Enable or disable X-Frame Options for the resource.
trueTrusted domains for X-Frame Options.
domain1.comSuccessfully updated X-Frame Options settings for the resource.
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 85
{
"status_x_frame": true,
"trusted_domains": [
"domain1.com",
"domain2.com",
"domain3.com"
]
}Successfully updated X-Frame Options settings for the resource.
{
"status": true,
"data": {}
}This setting is available in small, large and dynamic(aksela) resource types.
UUID of the organization
UUID of the resource
Enable or disable X-XSS Protection for the resource.
trueSuccessfully updated X-XSS Protection settings for the resource.
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 32
{
"status_x_xss_protection": true
}Successfully updated X-XSS Protection settings for the resource.
{
"status": true,
"data": {}
}This setting is available in small, large and dynamic(aksela) resource types.
UUID of the organization
UUID of the resource
Enable or disable X-Content Type Options for the resource.
trueSuccessfully updated X-Content Type Options settings for the resource.
PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"status_x_content_type": true
}Successfully updated X-Content Type Options settings for the resource.
{
"status": true,
"data": {}
}Last updated
Was this helpful?