How to Disable SSL on ASP.NET Core 5 Project in Visual Studio 2022?

How to Disable SSL on ASP.NET Core 5 Project in Visual Studio 2022


Solution 1:

In the projects debug settings there is a "Use SSL" checkbox.

Menu Debug | (Project Name) Debug Properties is one route to the settings. Editing launchSettings.json would be another.

Solution 2:

In Startup.cs try removing

app.UseHttpsRedirection();

from the index method inside the home controller

[RequireHttps]