[英]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). 我正在使用IBM Websphere 7,并且在尝试向http标头(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.
如果可以在Websphere 7中进行设置,以将其自动添加到响应头中,那将是完美的。
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.
这是一种解决方法,并非我真正想要的,但现在可以使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.