I have to test some scenarios in Production environment and to do so, I need to avoid the automatic redirection from HTTP to HTTPS that seems to happen in ASP.NET Core 5.
I've already tried to remove (or comment) the lines below:
app.UseHttpsRedirection();app.UseHsts();
But IIS still automatically redirects from HTTP to HTTPS. I've read something about launchSettings.json, but I understood that it is used only for local environment.
The server is a Windows Server 2019, IIS version is 10.0.17763.1.
What else should I try?