Reducing information disclosure in Tomcat error pages

前端 未结 5 1497
灰色年华
灰色年华 2021-02-05 15:20

By default, Tomcat\'s error pages disclose both the existence of Tomcat and the exact version of the container that\'s handling the requests. This is nice for development, but

5条回答
  •  遇见更好的自我
    2021-02-05 15:28

    A possible option would be to set up a Servlet Filter, that could redirect error pages to exactly the page you want ... You would only code this once, and it would work for all error codes..

提交回复
热议问题