Header Removal Policy
API Manager supports policies for removing HTTP headers from a request or response. The policies take effect before sending the request or response. The Header Removal policy performs the following actions:
-
Prevents receipt of one or more specified headers sent from the client to the backend service.
-
Prevents inclusion of one or more specified headers in a response from the backend service to the client.
Applying the Header Removal Policy
Perform the following steps to apply the policy:
-
From your left navigation, select API Administration.
-
Select the version to which you want to apply the policy.
-
From your left navigation, select Policies.
The policies details page appears. If the header was already provided by the client or another policy, the value is overwritten with your header.
-
Click Apply New Policy.
The Select Policy dialog box appears.
-
From the policy list, select the Header Removal radio button and click Configure Policy.
The Apply Header Removal policy page appears.
-
In the Inbound Header Map box, type the name of the inbound header.
For example, type
in-header
in the box. -
In the Outbound Header Map box, type the name of the outbound header.
For example, type
out-header
in the box. -
Click Apply.
The Policies page is displayed with the Header Removal policy that you added.