When i remove response header content in mvc it doesn't remove server:Microsoft-IIS/10.0 Why?
i am using
in
and App_Start()
{
MvcHandler.DisableMvcResponseHeader = true;
}
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit Kumar SinghPosted Feb 23, 2016, 7:17 AM
To remove the MVC header,
In Global.asax, in the Application Start event:
Put this in the web.config get rid of the X-AspNet-Version header: