HTTP headers are components of the header section of request and response messages that are transmitted over HTTP. HTTP headers define the required resources, the behavior of clients or servers that process the messages, and the parameters of an HTTP transaction. You can add HTTP headers to back-to-origin HTTP requests.


  1. Log on to the DCDN console.
  2. In the left-side navigation pane, click Domain Names.
  3. On the Domain Names page, find the domain name that you want to manage, and click Configure in the Actions column.
  4. In the left-side navigation pane on the details page of the specified domain name, click Origin Fetch.
  5. Click the Custom Origin HTTP Header tab.
  6. Click Add.
  7. In the Custom HTTP Response Header Settings dialog box, select a value for Parameter and set a value for Value.
    Custom HTTP response header settings
    Parameter Example Description
    Parameter Custom Origin Header

    You can select Custom Origin Header or select a preset response header.

    Custom Parameter Content-Type

    The name of the custom response header is Content-Type.

    Value text/html

    You can specify one or more values for a response header. Separate multiple values with commas (,).

  8. Click OK.

Configuration example

Sample scenario: Adds a response header to specify that the content returned to users is of a specified MIME type.

Configuration: See the following figure. Configuration

Expected result: The origin server adds the Content-Type header whose value is text/html to the response returned to DCDN nodes. If the configuration is updated, the value is overwritten.