Tomcat HttpHeaderSecurityFilter does not add headers to 404 response

Solution Verified - Updated -

Issue

  • After configuring the org.apache.catalina.filters.HttpHeaderSecurityFilter on Tomcat, we are seeing that it does not add the expected headers on 404 requests

Environment

  • JBoss Web Server (JWS) 5.x
    • Tomcat 9.0.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content