Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Removing "Server" response header

Not applicable

I'm trying to remove the "Server" : "Apigee Router" header from the response.

I tried removing it using an Assign Message Policy in the Proxy Endpoints' PreFlow but it didn't do it.

Then tried the same in PostFlow and then in TargetEndPoints' pre/post flow - still didn't work.

Here's the policy I have in place:

<AssignMessage async="false" continueOnError="false" enabled="true" name="removeServerHeader">
    <DisplayName>removeServerHeader</DisplayName>
    <AssignTo createNew="false" transport="http" type="response"/>
    <Properties/>
    <Remove>
        <Headers>
            <Header name="Server"/>
        </Headers>
    </Remove>
    <IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
</AssignMessage>
Solved Solved
3 10 5,520
1 ACCEPTED SOLUTION

Not applicable

That header gets added by the Apigee router which is in front of the Message processors, you cannot delete using the policies @Anandakumar.Subramaniam

View solution in original post

10 REPLIES 10