{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/Home/issues/837","labels_url":"https://api.github.com/repos/aspnet/Home/issues/837/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Home/issues/837/comments","events_url":"https://api.github.com/repos/aspnet/Home/issues/837/events","html_url":"https://github.com/aspnet/Home/issues/837","id":101226050,"number":837,"title":"A couple of questions about response headers Server and X-Powered-By","user":{"login":"GuardRex","id":1622880,"avatar_url":"https://avatars.githubusercontent.com/u/1622880?v=3","gravatar_id":"","url":"https://api.github.com/users/GuardRex","html_url":"https://github.com/GuardRex","followers_url":"https://api.github.com/users/GuardRex/followers","following_url":"https://api.github.com/users/GuardRex/following{/other_user}","gists_url":"https://api.github.com/users/GuardRex/gists{/gist_id}","starred_url":"https://api.github.com/users/GuardRex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuardRex/subscriptions","organizations_url":"https://api.github.com/users/GuardRex/orgs","repos_url":"https://api.github.com/users/GuardRex/repos","events_url":"https://api.github.com/users/GuardRex/events{/privacy}","received_events_url":"https://api.github.com/users/GuardRex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-16T02:24:59Z","updated_at":"2015-08-16T02:24:59Z","closed_at":null,"body":"Out of the box, `Server` and `X-Powered-By` headers are added to responses ...\r\n```\r\nServer:Microsoft-IIS/10.0\r\nX-Powered-By:ASP.NET\r\n```\r\nI tried using an `ActionFilterAttribute` to dump them ...\r\n```\r\npublic class RemoveHeadersAttribute : ActionFilterAttribute {\r\n    public override void OnActionExecuted(ActionExecutedContext filterContext) {\r\n        filterContext.HttpContext.Response.Headers.Remove(\"Server\");\r\n        filterContext.HttpContext.Response.Headers.Remove(\"X-Powered-By\");\r\n        base.OnActionExecuted(filterContext);\r\n    }\r\n}\r\n```\r\n... but only the `Server` header was removed. Is the `X-Powered-By` header added later in the pipeline? Can it be removed? btw--- Why are these added anyway ... to help MS (others?) track server and programming technology used on the Net?"}}