Remove HTTP Response headers in Java -


is there way remove http response headers server , x-powered-by?

my application using weblogic server. i'm programming in java using spring mvc framework , hibernate, , using jsp views.

depends on headers added. if inside app, can use spring mvc interceptor remove them after controller calls. if outside app, might able try java ee filter configured in web.xml (the example security, approach work use case). if added after that, may want @ web front end (apache, iis, what-have-you) configure filter there.

update

this answer describes approach removing specific headers, httpservletresponse interface not allow header removal explicitly. need trial , error determine portion of stack adding header.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -