Layer7 API Management

Expand all | Collapse all

How to remove "Server" Response Header ?

Jump to Best Answer
  • 1.  How to remove "Server" Response Header ?

    Posted 05-29-2018 10:43 AM

    Hi Team,

    the customer is asking for, how he can remove the HTTP "Server" response header from the gateway response?

    We tried to use Manage Transport Properties/Headers assertion without success.

    Regardless, if we are using the header name or if we are using a regular expression, the assertion does not remove the "Server" header.

    We are able to overwrite the value of this header by any value, even set it to empty.

     

    Is there as specific reason for this behavior?

    Is there any different capability to remove this header from the GW response?

     

    Thank you

    ..............Michael



  • 2.  Re: How to remove "Server" Response Header ?
    Best Answer

    Broadcom Employee
    Posted 05-29-2018 07:37 PM

    server response header is defined in rfc2616, it cannot be removed (at least for tomcat or gateway), but you can change it as it's a connector property, ie. you can configure it on listen port properties -> advanced properties,

    How to remove Apache headers i.e Server : Apache-Coyote/1.1  



  • 3.  Re: How to remove "Server" Response Header ?

    Posted 05-30-2018 03:40 AM

    Thank you Zhijun for pointing me in the right direction !

    ...........Michael