'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:[1]

In Program.cs remove

app.UseHttpsRedirection();

and In Debug option of the project, click the "Open debug launch profiles UI" link and untick the Use SSL under IIS Express

Solution 2:[2]

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 3:[3]

In Startup.cs try removing

app.UseHttpsRedirection();

from the index method inside the home controller

[RequireHttps]

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dominic George
Solution 2 Richard
Solution 3 reza okhovat