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
Use the RegisterGlobalFilters method in your FiltersConfig.
RegisterGlobalFilters
FiltersConfig
public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); filters.Add(new RequireHttpsAttribute()); } }