Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1499

Can't enable https for my ASP.Net Core project build

$
0
0

I've ran into an issue deploying my service. I am using ASP.NET Core 8.

I want my server to work on Https so I enabled Https redirection in Program.cs using app.UseHttpsRedirection. And in debug it works just as intended and shows

Now listening on: https://localhost:5000

But when I export using a FolderProfile and run app it shows only

Now listening on: http://localhost:5000

Instead of https, the service listens on regular http.

I moved https profile upwards on launchsettings in case it isn't considered default profile but it did not help.


Viewing all articles
Browse latest Browse all 1499

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>