I have a MVC 5 app and I installed the ssl certificate and I\'m now connecting with https, but in my code I had to set the \'[requirehttps]\' attribute on the homecontroller lik
The [RequireHttps]
attribute is inherited, so you could create a base controller, apply the attribute to that, and then derive all your controllers from that base.
[RequireHttps]
public abstract class BaseController : Controller
{}
public class HomeController : BaseController
{}
public class FooController : BaseController
{}