What I\'m doing:
I added .UseUrls("https://localhost:/") to the Program.cs. This seemed to do the trick for me!
.UseUrls("https://localhost:/")