Remove unnecessary headers from http responses.

This commit is contained in:
2018-03-17 14:43:01 +01:00
parent 130c20a30d
commit 8fe526089e
4 changed files with 42 additions and 1 deletions

View File

@@ -2,17 +2,29 @@
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.6.1" />
<httpModules>
<add name="GlobalModule" type="VAR.Focus.Web.GlobalModule" />
</httpModules>
<httpHandlers>
<clear />
<add path="*" verb="*" type="VAR.Focus.Web.GlobalRouter" />
</httpHandlers>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />
<pages clientIDMode="AutoID" enableViewState="false" enableSessionState="false" enableViewStateMac="false" />
<httpRuntime enableVersionHeader="false" />
</system.web>
<system.webServer>
<modules>
<add name="GlobalModule" type="VAR.Focus.Web.GlobalModule" />
</modules>
<handlers>
<clear />
<add name="GlobalRouter" path="*" verb="*" type="VAR.Focus.Web.GlobalRouter" />
</handlers>
<validation validateIntegratedModeConfiguration="false" />
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>