Can someone explain why setting an HTTPS URL when building a web app overrides the HTTP settings?
I have the following code which works just fine:
var webApplication = WebApplication.CreateBuilder().Build();
webApplication.Urls.Add("http://*:5002");
webApplication.RunAsync();
When I use Postman to communicate, I have no trouble finding the web application on port 5002.
But when I add an HTTPS port:
var webApplication = WebApplication.CreateBuilder().Build();
webApplication.Urls.Add("http://*:5002");
webApplication.Urls.Add("https://*:500");
webApplication.RunAsync();
The application stops listening on port 5002 and actively refuses the connection.
5