简体   繁体   中英

IBM Websphere 7 set/add http header value

I'm using IBM Websphere 7 and am running into a problem when I try to add a value to the http header (X-UA-Compatible : IE=edge,chrome=1). It is telling me that the response has already been committed and the value cannot be added. If there is a configuration that you could setup in Websphere 7 to automatically add this to the response header that would be perfect.

The solution that I came up with was to create a filter that would execute early on in the processing of the request. That filter would add the values to the response header. It's a workaround and wasn't exactly what I was looking for, but it works for now.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM