Search code examples
weblogic

How configure the HTTP Headers in Weblogic Response


Using WebLogic 11g and want to be able to add headers to all files served up by WebLogic.

There is no separate web server sitting in front of WebLogic.

Cannot find a way to configure WebLogic to add header to the HTTP response.

In IIS you can easily do this by choosing the server and clicking to add headers. Looking for the equivalent way to do this in WebLogic.


Solution

  • I dont think this is configurable. You would have to write a Filter to manipulate the headers as you need.

    As a hint, you could try something along the lines of this package http://flavio.tordini.org/http-headers-filter. I have not tried this myself