I created a simple web application from visual studio Web Application(Net.Core) template with individual user account authorization.
Then, I enabled SSL in Project->MyProject Properties..., copied URL with https to App Url.
Finally, I added:
services.AddMvc(options =>
{
options.Filters.Add(new RequireHttpsAttribute());
});
to Startup.
And it doesn't work! When I'm starting the application, it just simply turns off after a second, and nothing happens, no error, nothing!
What's wrong with SSL in Asp.Net Core, and how can I enable it correctly?