I have an ASP.Net Core 2.2 Web API project that is using InProcess hosting model. I need to remove certain HTTP headers from the response such as Server and X-Powered-By. All the answers I have found lead to ConfigureKestrel() or manually editing the web.config file. However:
- I am not using Kestrel since I am InProcess
- The web.config is auto-generated when publishing the app
Thanks for your help.