I have an DotNet Core API which we are running in Kestrel Server
In the response headers it adds the header "Content-Length" which is causing an issue.
Is there any way to remove the Content-Length Header for all the responses ?
I tried below code But it only removes the "Server: Kestrel" type header.
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
.UseKestrel(options => options.AddServerHeader = false);
});