I've read past posts about using RequireHttpsAttribute to protect different controllers:
But is there a way to apply it to the entire site? Due to my host (discountasp.net) I can not use the "RequireSSL IIS" setting.
Register Requirements HttpsAttribute as global filter.
in global.asax:
protected zero application_Start () {GlobalFilters.Filters.Add (New RequireHttpsAttribute ()); // ... other stuff}
Comments
Post a Comment