Web App Without HTTPS

Hi.

Is it possible to create an app using Rider without HTTPS? I installed Rider today for the very first time and do not find any option to select/deselect https configs.

A reply to how to find this option is highly appreciated.

 

Thanks.

-A. J.

0
3 comments

Hello!

Currently, Rider provides no special means to enable/disable HTTPS in a web project, so you'll have to edit the configuration file directly.

ASP.NET Core templates include both HTTP and HTTPS by default. If you want to disable HTTPS, all you need to do is edit Properties/launchSettings.json file in your project:

  • remove the "sslPort" property from the "iisExpress" section (if you work with IIS Express)
  • remove https://localhost:5001 part from the "applicationUrl" property (if you directly work with Kestrel server)
1

My ASPNET CORE WebAPI doesen't have a Properties folder nor a launchSettings.json.
How do we configure disabling https on localhost in JetBrains Rider 2023.2.2?

0

Hello, Esben Bucking Rasmussen ,

I guess in that case you should configure Kestrel endpoints using the appsettings.json file in your project, e.g. add this section:

"Kestrel": { 
	"Endpoints": { 
		"Http": { 
			"Url": "http://localhost:5000" 
			}
		}
	},

Please let me know if it doesn't work for you.

 

0

Please sign in to leave a comment.