IBM Websphere 7设置/添加http标头值 [英] IBM Websphere 7 set/add http header value

查看:120
本文介绍了IBM Websphere 7设置/添加http标头值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用IBM Websphere 7,并且在尝试将值添加到http标头(X-UA兼容:IE = edge,chrome = 1)时遇到问题.告诉我响应已经提交,无法添加值.如果您可以在Websphere 7中进行设置,以将其自动添加到响应头中,那将是完美的.

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.

这篇关于IBM Websphere 7设置/添加http标头值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆