Skip to content

Commit

Permalink
Add more information to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tjrobinson committed Dec 16, 2016
1 parent 100e842 commit 1ed5ff6
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Remove Custom Headers

Removes custom HTTP Response headers for Azure App Service web applications including Server, X-Powered-By, X-AspNet-Version and X-AspNetMvc-Version.
Removes custom HTTP response headers for Azure App Service web applications including `Server`, `X-Powered-By`, `X-AspNet-Version` and `X-AspNetMvc-Version`.

https://www.siteextensions.net/packages/RemoveCustomHeaders

# How does it work?

This extension is just a simple wrapper over the following `ApplicationHost.xdt` file:

'''xml
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.webServer>
<httpProtocol>
<customHeaders>
<add xdt:Transform="Remove" />
</customHeaders>
</httpProtocol>
<security>
<requestFiltering removeServerHeader="true" xdt:Transform="SetAttributes(removeServerHeader)" />
</security>
</system.webServer>
</configuration>
```
These transform files are the supported way of allowing you to modify the default `ApplicationHost.config` file.

0 comments on commit 1ed5ff6

Please sign in to comment.