We are trying to remove Server identity header from API response. We have added rewrite rules in global web.config and application web.config and is working properly, But now when we change method type to "Trace" and change "Content-Length" value to grater than 0 it is giving 400 error.
At this time server is raveling Server header in response : Server:Microsoft-HTTPAPI/2.0 We identified that request is not reaching to server web config or inside application.
Server : Windows server 2019 - IIS10
Anyone can suggest us about how to remove that header from response ? We already tried registry value change fix but not working.