How do I do the OPPOSITE of [RequireHttps(Redirect=true)] in ASP.NET MVC

前端 未结 3 575
一向
一向 2020-12-29 14:03

I know the easy way to get to an SSL page in ASP.NET MVC - via the [RequireSSL] attribute but I\'m a little confused to the best way to do the opposite.

I have many

3条回答
  •  轮回少年
    2020-12-29 14:30

    You're not missing anything; there is no out-of-the-box functionality for this. You can easily create your own by taking the RequireSslAttribute source and modifying it.

提交回复
热议问题