Found 0 result in total

Content is empty
If you don't find the content you expect, please try another search term
Content Delivery Network (CDN)
API Documentation
Domain Detailed Configuration
SetHttpHeadersConfig
Last updated:2021-03-17 11:06:56
You can call this operation to configure an HTTP response header.
Note:
The API request contains the specified directory /2016-09-01/domain/SetHttpHeadersConfig, common request headers, and operation-specific request parameters. For more information, see the sample request.
| Header | Required | Type | Description |
|---|---|---|---|
| X-Version | Yes | String | The version number. Set the value to 2016-09-01. |
| X-Action | Yes | String | The operation that you want to perform. Set the value to SetHttpHeadersConfig. |
| Parameter | Required | Type | Description |
|---|---|---|---|
| DomainId | Yes | String | The ID of the domain name. |
| HeaderKey | Yes | String | The HTTP header to be configured. Valid values: Content-Type, Cache-Control, Content-Disposition, Content-Language, Expires, Access-Control-Allow-Origin, Access-Control-Allow-Methods, and Access-Control-Max-Age. |
| HeaderValue | Yes | String | The value of the HTTP header, which can be up to 255 characters in length. |
Note: Duplicate headers are not allowed.
Sample request
POST method:
POST /2016-09-01/domain/SetHttpHeadersConfig
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
X-Action: SetHttpHeadersConfig
X-Version: 2016-09-01
Content-Type:application/json
Accept:application/json
{
"DomainId": "2D08M8V",
"HeaderKey":"Expires",
"HeaderValue":"20"
}
Sample response
Pure Mode