SSL pages under ASP.NET MVC

前端 未结 12 1079
情话喂你
情话喂你 2020-11-28 01:49

How do I go about using HTTPS for some of the pages in my ASP.NET MVC based site?

Steve Sanderson has a pretty good tutorial on how to do this in a DRY way on Previe

12条回答
  •  执笔经年
    2020-11-28 02:51

    This isn't necessarily MVC specific, but this solution does work for both ASP.NET WebForms and MVC:

    http://www.codeproject.com/KB/web-security/WebPageSecurity_v2.aspx

    I've used this for several years and like the separation of concerns and management via the web.config file.

提交回复
热议问题