我正在使用 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>
它们都不起作用,请建议如何从工厂配置中删除服务器标头。