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 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. It accepts one or more hdr parameters through which you can specify multiple headers you want to suppress.
For example, you might want to prevent the from and Cookie headers from going out because it reveals the user’s credentials.
The following table describes parameters 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" |