Salut,
Herak Sen wrote:
> Hi,
>
>
>
> I cannot remove/update the ‘X-Powered-By’ and ‘Server’ response headers
> using javax.ws.rs.core.Response.
>
> In case of servlets its possible to do so via HTTPServletResponse.
>
>
>
> I guess it’s due to the fact the generated response is not the final
> response in the chain.
You need to edit $glassfish.home/domains/domain1/config/domain.xml, and
set the value to false
> <http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" i
> d="http-listener-1" port="8080" security-enabled="false" server-name="" xpowered-by="true">
-- Jeanfrancois
>
>
>
> Herak
>