Updated on 2024-04-17 GMT+08:00

Forwarding Custom Header Fields

You can use WAF to add additional header information, for example, $request_id, to associate requests on the entire link. You can follow this topic to let WAF insert additional fields into a header and forward requests to origin servers.


You have selected Cloud - CNAME or Dedicated for Protection when adding the website to WAF.


  • Header field forwarding can be configured only when you select Cloud - CNAME and Dedicated for Protection.
  • Forwarding custom header fields is supported in some regions. For details, see Functions.
  • You can configure up to eight key/value pairs.
  • The value can be set to a custom string or a variable starting with $. Variables starting with $support only the following fields:


  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. Click in the upper left corner and choose Web Application Firewall under Security & Compliance.
  4. In the navigation pane on the left, choose Website Settings.
  5. In the Domain Name column, click the website domain name to go to the basic information page.
  6. In the Forward Field column, click . In the displayed Forward Field dialog box, enter a key/value pair. To add more fields, click Add.

    Figure 1 Forward Field

  7. After the fields are added, click Confirm.