Applicable in Init-class and ObjectType-class directives.
If you specify this function at the Init stage, it applies to the entire proxy for all the requests.
If you specify this function at the ObjectType stage, you can control suppressing outgoing headers functionality for different objects in the obj.conf file.
The suppress-request-headers function configures the proxy server to remove outgoing headers from the request. This function accepts one or more hdr parameters through which you can specify multiple headers that you want to suppress.
For example, you might want to prevent the from and Cookie headers from being sent because the information reveals the user’s credentials.
The following table describes the parameter for the suppress-request-headers function.
Table 5–22 suppress-request-headers Parameters
Parameter |
Description |
---|---|
hdr |
Name of the HTTP request header to be suppressed. |
Init fn="suppress-request-headers" hdr="from" hdr="Cookie" |