Use a different port with RequireHttps filter in MVC2
2 answers
Subclass and override HandleNonHttpsRequest (). From this method, you can manipulate the url as needed. (For example, you can call base.HandleNonHttpsRequest () and then change the filterContext.Result property to include the port number.) Then use [MyCustomRequireHttps] instead of [RequireHttps] for your actions.
+1
a source to share