从工厂配置中删除服务器响应标头 IIS10

问题描述 投票:0回答:1

我正在使用 Outsystems 工具来开发网站。尝试从出厂配置中删除服务器标头 IIS10.0。我浏览了各种文档,但找不到正确的解决方案。

   <xsl:template match="/configuration/system.webServer/httpProtocol/customHeaders">
        <xsl:copy>
            <remove name="Server"/>
               </xsl:copy>
    </xsl:template>

也尝试过

<xsl:template match="/configuration/system.webServer/security/requestFiltering">
        <xsl:copy>
            <add name="removeServerHeader" value="true"/>
        </xsl:copy>
    </xsl:template>

它们都不起作用,请建议如何从工厂配置中删除服务器标头。

header iis-10 outsystems
1个回答
0
投票

请遵循以下说明:

© www.soinside.com 2019 - 2024. All rights reserved.