Reputation: 191
How to Disable SSL on ASP.NET Core 5 Project in Visual Studio 2022
Upvotes: 12
Views: 39488
Reputation: 1
In Lunch Profile (where we run the project) as in below image click on DropDown Arrow enter image description here
then (You Project Name Debug Properties)Toll Icon --> click on it ,
Thier Will thr Launch profile Pop will open in it click on Second Option which is IIS EXPRESS, [Lauch Profile][2]
Scroll down --> uncheck USE SSL if you want to make it http only else if it's checked then it set as https [Use SSL Check uncheck Option][3]
Upvotes: 0
Reputation: 21
If you are using VS2022 with dotnet 6.0 app, Go to Project Settings > Debug > General > Open debug launch profiles UI
in "IIS Express" then uncheck Use SSL
Remove the https url from "App URL" of the project
Upvotes: 2
Reputation: 51
Building on comment from Muhammad Ummar...
If you are using VS2022 with dotnet 6.0 app, then Go to Project Settings > Debug > General > Open debug launch profiles UI > IIS Express then uncheck Use SSL
I also needed to edit the App Url remove the https utl from: Project Settings > Debug > General > Open debug launch profiles UI > "Project name" > App Url
Upvotes: 5
Reputation: 77
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
Upvotes: 6
Reputation: 134
In Startup.cs try removing
app.UseHttpsRedirection();
from the index method inside the home controller
[RequireHttps]
Upvotes: 11
Reputation: 108985
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.
Upvotes: 9