【问题标题】:How to suppress $WSEP header in Websphere Liberty Core 17.0.0.1如何在 Websphere Liberty Core 17.0.0.1 中抑制 $WSEP 标头
【发布时间】:2017-05-30 13:42:32
【问题描述】:

我有一个在 Websphere Liberty Core 17.0.0.1 上运行的应用程序。每当它以 4xx 状态代码响应时,Web 容器都会在响应中添加名为 $WSEP 的标头。例如:

$WSEP →
Cache-Control →no-cache, no-store, max-age=0, must-revalidate
Content-Language →en-US
Content-Type →text/html;charset=UTF-8
Date →Tue, 30 May 2017 13:21:21 GMT
Expires →0
Pragma →no-cache
Transfer-Encoding →chunked

我尝试将 Web 容器属性 suppressErrorPageODRHeader 添加到我的 server.xml 中以抑制此标头,但它不起作用。

<webContainer suppressErrorPageODRHeader="true"/>

如何配置我的 Web 容器以禁止显示此标头?

【问题讨论】:

    标签: websphere websphere-liberty


    【解决方案1】:

    您应该使用完整的网络容器名称“com.ibm.ws.webcontainer.suppresserrorpageodrheader”,并且应该抑制 $WSEP 标头。

    一些原始/旧的 WAS 属性在 Liberty 中没有短名称。

    【讨论】:

      【解决方案2】:
      <webContainer com.ibm.ws.webcontainer.suppresserrorpageodrheader="true"/>
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2020-10-11
        • 1970-01-01
        • 2016-05-30
        • 1970-01-01
        • 1970-01-01
        • 2011-05-03
        • 1970-01-01
        相关资源
        最近更新 更多