This package will reduce the server information that is disclosed to your visitors. It removes the following http headers: "Server" "X-AspNet-Version" "X-AspNetMvc-Version" "X-Powered-By" It is compatible with async operations in MVC and WebAPI as it does not rely on the PreSendRequestHeaders event.
$ dotnet add package RemoveASPNETheadersNo README available.