English 中文(简体)
如何消除(重复) X-Powered-By: JSF/2.0
原标题:How to remove (duplicate) X-Powered-By: JSF/2.0

In my instance, I have Glassfish 3.1.1 / Mojarra 2.1.3

在网络听众中,我可以删除玻璃鱼阿明·孔塞莱的X动力-By(因此没有显示长篇:

Servlet/3.0 JSP/2.2 (GlassFish Server Open Source Edition 3.1.1 Java/Sun Microsystems Inc./1.6)

但它仍然显示(有两次):

X-Powered-By: JSF/2.0
X-Powered-By: JSF/2.0

我正在利用泽西岛和日本宇宙航空研究开发局,揭露一些网络服务,并使用“www.WebServlet Annotation”部署一些服务器,但我不认为它们增加了任何内容。

它不是由Mald_jk或Apache生成的,因为即使我与申请港直接联系(当地东道方:8080),我也与这些负责人接触。

是否有在玻璃鱼中这样做的典型单元? 我如何去除这些头脑?

Thank you

最佳回答

这是由Mojarra确定的。 您可以通过在网络应用<条码>上设定背景参数<>com.sun.faces.send PoweredBy Header至>false

<context-param>
    <param-name>com.sun.faces.sendPoweredByHeader</param-name>
    <param-value>false</param-value>
</context-param>

However, that it sends the value twice is a mystery to me. This is not the default behaviour and technically impossible (as it would indicate the ExternalContextImpl being constructed twice on the same response). Perhaps mod_jk is doing something wrong.

问题回答

暂无回答




相关问题
How to suppress/remove PHP session cookie

I need to suppress an already set session cookie header, but I cannot find any way to do this. Why? I need to make an image, sent by a PHP script, cacheable by the end user; this image is used to ...

Cached image problem

Right, my problem is that I need to replace an image that appears on every page of a site, which is fine, the problem is I want every user to see the new image and not a cached version of the old one. ...

With php cURL get filename from file header

I have this php cURL function: function curl_login($url,$data,$proxy,$proxystatus){ $fp = fopen("cookietlt.txt", "w"); fclose($fp); $login = curl_init(); curl_setopt($login, CURLOPT_COOKIEJAR, "...

How to set response filename without forcing "save as" dialog

I am returning a stream in some response setting the appropriate content-type header. The behavior I m looking for is this: If the browser is able to render content of the given content type then it ...

To add more parameter for my http header for SSL/TLS

As far as I understand, https is http plus SSL/TLS. What do I need to do if I want to add 3 more parameters for the header? I found a file inside Mozilla s NSS - ssl3ext.c, but I don t understand it ...

热门标签