Layer7 API Management

  • 1.  How to remove "Server" Response Header ?

    Posted May 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 May 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 May 30, 2018 03:40 AM

    Thank you Zhijun for pointing me in the right direction !

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