Remove the HTTP Server header in Jetty 9

前端 未结 7 1883
执念已碎
执念已碎 2020-12-30 01:36

This is how you hide the server version in Jetty 8:

Server server = new Server(port);
server.setSendServerVersion(false);

How do you do it

7条回答
  •  一整个雨季
    2020-12-30 01:40

    If you use jetty9 as a standalone server you can disable the server signature by setting jetty.httpConfig.sendServerVersion=false in the file start.ini.

提交回复
热议问题