Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/457.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iis 删除托管融合URL重写器插入的HTTP头_Iis_Url Rewriting_Urlrewriter - Fatal编程技术网

Iis 删除托管融合URL重写器插入的HTTP头

Iis 删除托管融合URL重写器插入的HTTP头,iis,url-rewriting,urlrewriter,Iis,Url Rewriting,Urlrewriter,我在玩弄它,注意到它在IIS的响应中添加了几个HTTP头: X-Rewritten-By: ManagedFusion (rewriter; reverse-proxy; +http://managedfusion.com/) X-ManagedFusion-Rewriter-Version: 3.5 如何删除这些标题?(出于性能方面的原因,我希望保持小规模。) 不幸的是,这个问题有点少。配置示例表明: <!-- This is just a minimal sample

我在玩弄它,注意到它在IIS的响应中添加了几个HTTP头:

X-Rewritten-By: ManagedFusion (rewriter; reverse-proxy; +http://managedfusion.com/)
X-ManagedFusion-Rewriter-Version: 3.5
如何删除这些标题?(出于性能方面的原因,我希望保持小规模。)

不幸的是,这个问题有点少。配置示例表明:

    <!--
    This is just a minimal sample configuration file that shows how to declare
    the configuration sections.

    Because an XML Schema Definition (XSD) is generated for each configuration
    section, it should be trivial to edit these files because you have
    IntelliSense on the XML definition.
    -->


但是,我在Visual Studio中没有看到任何IntelliSense,因此我看不出这是否是一个可以保留在web.config中的配置选项。

在仔细阅读源代码后,最终找到了该配置选项

相关属性为
allowVanityHeader

<managedFusion.rewriter xmlns="http://managedfusion.com/xsd/managedFusion/rewriter">
    <rewriter allowVanityHeader="false" />
</managedFusion.rewriter>

(包含在web.config的
节点中。)