Overview
You can customize, add, and delete headers in HTTP origin-pull requests from nodes to the origin.
Note
EdgeOne forwards
X-Forwarded-For and X-Forwarded-Proto to the origin by default, so you don't need to configure them.Operations Guide
1. Log in to the EdgeOne console and select Rule Engine from the left sidebar.
2. On the Rule Engine page, select the required site and configure the HTTP request header rules as needed. For information on how to use the Rule Engine, please refer to Rule Engine.
Description of configuration items:
Local Disk Types | Note |
Settings | Change the value of the specified header parameter to the set value, ensuring the header is unique. Note: If the specified header does not exist, it will be added. |
Add | Add the specified headers. Please note: if the header already exists, it will overwrite the original header and remain unique. |
DELETE | It deletes the specified header. |
Description of header types:
Header Type | Note |
Custom | Customize the header. Name: Composed of 1-100 characters, including digits 0-9, letters a-z, A-Z, and the special character '-'. Value: 1 to 1000 characters (Chinese is not supported). |
Preset header | Aggregated client header information based on the client's User-Agent information:Client device type: EO-Client-Device.Values: Mobile, Desktop, SmartTV, Tablet, or Others.Client Operating System: EO-Client-OS.Values: Android, iOS, Windows, MacOS, Linux, or Others.Client browser type: EO-Client-Browser.Values: Chrome, Safari, Firefox, Internet Explorer, or Others. |
Supports and Limits
During one HTTP request header modification operation, you can add up to 30 headers of different types, which will be executed in sequence from top to bottom.
The following standard headers cannot be modified:
Accept | Accept-Charset | Accept-Encoding | Accept-Language |
Accept-Ranges | Age | Authorization | Cache-Control |
chunked | close | Connection | Content-Encoding |
Content-Length | Content-Range | Content-Type | Cookie |
Date | Etag | Expect | Expires |
From-Tencent-Lego-Cluster | From-Tencent-Lego-Cluster-Client-Info | From-Tencent-Lego-Cluster-Edge-Server-Info | From-Tencent-Lego-Dsa |
From-Tencent-Lego-Dsa-Client-Info | From-Tencent-Lego-Dsa-Edge-Server-Info | From-Tencent-Lego-Overload | Host |
identity | If-Match | If-Modified-Since | If-None-Match |
If-Range | keep-alive | Last-Modified | Location |
multirange | normal | Pragma | Proxy-Authorization |
Proxy-Connection | Range | Referer | Server |
Server-Timing | Set-Cookie | Transfer-Encoding | upgrade |
Upgrade | Upgrade-Insecure-Requests | User-Agent | Via |
X-Cache-Lookup | X-Forwarded-For | X-Last-Update-Info | x-redirect-to-self |
X-Via | - | - | - |