Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1631

Avoid redirection to HTTPS in ASP.Net Core 5

$
0
0

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?


Viewing all articles
Browse latest Browse all 1631

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>