---
title: "Discussion on \"Remove Header Info from Response in Asp.NET Web API 2\" | Hashnode"
description: "Discussion on \"Remove Header Info from Response in Asp.NET Web API 2\". To solve this issue, there are few ways but I used these two;\nGlobal.asax.cs\nI added these lines to remove server and asp.net version in Application_EndRequest blocks.\nprotected void Application_EndRequest()\n{\n        Response.Headers.Remove(\"Server\"..."
url: "https://hashnode.com/posts/remove-header-info-from-response-in-aspnet-web-api-2/5fedb41f017ebb59232dcbbc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Remove Header Info from Response in Asp.NET Web API 2](https://aligoren.hashnode.dev/remove-header-info-from-response-in-aspnet-web-api-2?utm_source=hashnode&utm_medium=feed)

To solve this issue, there are few ways but I used these two; Global.asax.cs I added these lines to remove server and asp.net version in Application\_EndRequest blocks. protected void Application\_EndRequest() { Response.Headers.Remove("Server"...

Sep 25, 2020 · 1 min read · aligoren.hashnode.dev  
Read the article

## Written by

[Itachi Uchiha](https://hashnode.com/@itachiuchiha)

@itachiuchiha · Kocaeli / TURKEY

  
[View profile](https://hashnode.com/@itachiuchiha)

Software Developer at Somewhere

Full-Stack Web Developer.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
