Information
A server header contains information about the software used by the server to handle the request. This information can be returned to browsers or web clients in certain situations.
Revealing the specific software version of the server may allow Websphere Liberty to become more vulnerable to attacks against software that is known to contain security holes. Enabling the removeServerHeader on the
Liberty configuration
removes this information and overrides the default value that is sent down in the HTTP header further masking any information about Websphere Liberty implementation.
Solution
Add the removeServerHeader attribute to httpOptions element specified in ${server.config.dir}/configDropins/overrides/*.xml Set the removeServerHeader attribute value to true
<httpEndpoint id="defaultHttpEndpoint"... <httpOptions removeServerHeader=`true`/></httpEndpoint>