HTTP request headers are additional pieces of information that are sent along with the request to the server. You can add, delete, change, and replace HTTP headers in origin requests to meet various business requirements.
How it works
When Edge Security Acceleration (ESA) points of presence (POPs) retrieve requested resources from an origin server, the origin server can obtain information included in request headers. ESA allows you to rewrite HTTP headers in origin requests and pass specific parameters to the origin server.
Before you begin
Origin requests are requests that retrieve resources requested by clients from the origin server. The configurations of HTTP headers in origin requests affect only HTTP messages that are transmitted by ESA to the origin server.
Modify a request header
In the ESA console, choose Websites and click the website name you want to manage.
In the left-side navigation pane, choose .
Click the Modify Request Header tab. Click Create Rule, and fill in the Rule Name.
In the If Requests Match... area, specify the conditions for matching incoming requests. For more information about how to configure a rule, see Rules.
In the Modify Request Header area, select a value from the Operation drop-down list and fill in the Request Header Name and Request Header Value parameters.
Add
Adds a specific request header to origin requests.
The newly added header will overwrite the existing header in the client's request when a client request includes a header that has the name as one you provide.
Example: If you want to add a request header whose name is x-code and value is key1, set the parameters to the following values:
Request Header Name:
x-codeRequest Header Value:
key1
Delete
Deletes all request headers that match the value of the Request Header Name parameter from origin requests, regardless of how many such request headers exist.
Example: If you want to delete a request header whose name is x-code, specify x-code in the Request Header Name parameter.
Change
Changes the value of a specific request header in origin requests.
The change is invalid when a client request doesn't include a header that matches the name you provide.
Example: If you want to change the value of a request header whose name is x-code to key2, set the parameters to the following values:
Request Header Name:
x-codeRequest Header Value:
key2
NoteYou cannot specify a value that starts with ali- or Ali- for the Request Header Name parameter.
You can specify one or more values for the Request Header Value parameter. Separate multiple values with commas (,).
Click OK.