MVC RequireHttps entire site

前端 未结 9 1049
遇见更好的自我
遇见更好的自我 2020-12-23 13:24

I have read the previous posts about using the RequireHttpsAttribute to secure individual controllers:

ASP.NET MVC RequireHttps in Production Only

but is the

9条回答
  •  既然无缘
    2020-12-23 13:44

    You could use a base class for all of your controllers, and decorate that with the require ssl attribute.

提交回复
热议问题