Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

enforcing ssl for entire application : ssl redirection

$
0
0

HI, 

using the following code : it redirects to  a different port rather than the hosted one. 

config.Filters.Add(new RequireHttpsAttribute());

 

my intention is to  enfoce ssl and the purpose is served but it redirects to new port : ssl is generally hosted on 443 however, 

i would need more clarity on this #aspnetcore  

can  some one explain how do i enforce ssl to same port or the better way of enforcing ssl from startup class ?


Viewing all articles
Browse latest Browse all 9386

Trending Articles