Dear Thomas, you may include a filter servlet into the application to modify the response header. A quick search offers e.g. https://gist.github.com/danlangford/3669475 , which states to implement a generic, configurable Response Header Filter.
You may compile this servlet independent from an existing application, therefore you may tweak even existing WARs with this. Guido >-----Original Message----- >From: Thomas Meyer [mailto:tho...@m3y3r.de] >Sent: Wednesday, March 13, 2019 10:43 AM >To: users@tomcat.apache.org >Subject: How to add an header field to all requests unconditionally > >Hi, > >what would be the easiest way to uncoditionally add an header field to >all requests coming from a given connector? >I searched the provided Valves but there seems to be no support for my >requirment. > >with kind regards >thomas > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >For additional commands, e-mail: users-h...@tomcat.apache.org