简体   繁体   English

IBM Websphere 7设置/添加http标头值

[英]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.

相关问题 需要将标题添加到将发送到IBM MQ Websphere的消息中 - need to add header to message which will be sent to IBM MQ websphere 如何设置IBM HTTP Server的响应标头 - how can I set the response header for IBM HTTP Server 将最大连接值设置为0:IBM WebSphere - Setting max connection value to 0: IBM WebSphere HTTP:要设置字符集要添加什么头? - HTTP: What header to add in order to set the charset? 是否可以将IBM HTTP Server设置为非IBM Websphere应用程序服务器的前端,并且IBM是否支持它? - Is it possible to setup the IBM HTTP server as the front end for a non IBM Websphere application server and is it supported by IBM? Websphere Application Server 7中的HTTP标头Mime类型 - HTTP Header Mime Type in Websphere Application Server 7 如何在IBM HTTPD服务器上设置Content-Type HTTP标头的字符集部分? - How do I set the charset portion of the Content-Type HTTP Header on an IBM HTTPD Server? 如何在IBM WebSphere服务器中的项目类路径中添加JAR文件? - How to add a JAR file to the project classpath in IBM WebSphere server? 如何使用IBM MQ在字符串中添加带有(名称和值)的标题 - How can i add Header with (Name and value)in string using IBM MQ 导致异常的IBM字符集标题 - IBM Character Set Header Causing Exceptions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM