Skip to content

Instantly share code, notes, and snippets.

@DavidDeSloovere
Last active November 9, 2018 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidDeSloovere/f5fef3d817407646549d to your computer and use it in GitHub Desktop.
Save DavidDeSloovere/f5fef3d817407646549d to your computer and use it in GitHub Desktop.
Config HTTP headers. Adds X-Content-Type-Options and remove X-Powered-By for every request and X-UA-Compatible for views.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge">
</head>
</html>
<system.webServer>
<httpProtocol>
<customHeaders>
<clear />
<add name="X-Content-Type-Options" value="nosniff" />
</customHeaders>
</httpProtocol>
</system.webServer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment