Is it possible to use [RequireHttps]
filter with a different port other than 443? I can't find much documentation about it.
相关问题
- MVC-Routing,Why i can not ignore defaults,The matc
- How to dynamically load partial view Via jquery aj
- Can ServiceStack JsonServiceClient send a get requ
- parameters in routing do not work MVC 3
- There is no ViewData item with the key 'taskTy
相关文章
- 请大神帮忙 post向https接口发送数据 部署到服务器为什么运行一会后就会报空指针
- “Dynamic operations can only be performed in homog
- How to get a list of connected clients on SignalR
- How do you redirect to the calling page in ASP.NET
- Change color of bars depending on value in Highcha
- The program '[4432] iisexpress.exe' has ex
- ASP.Net MVC 4 Bundles
- Forward request from servlet to jsp
Subclass it and override HandleNonHttpsRequest(). From within that method, you can manipulate the URL as necessary. (For example, you can call base.HandleNonHttpsRequest(), then modify the filterContext.Result property to include a port number.) Then use [MyCustomRequireHttps] instead of [RequireHttps] on your actions.
Steve Sanderson's approach finally worked fine for me. No need to use the MVC2 filters.