开发者

RequireHttps attribute redirecting to wrong port

I'd like to stick with the attribute as it is simple. Apparently VS2010 development server supports HTTPS as it worked without problem which was nice.

I followed the login link, was redirected to 443 and presented with a cert. I entered my credentials and submitted. Then I was redirected to standard port 80 instead of the static port I setup.

This is a minor inconvenience but instead 开发者_StackOverflow中文版of following this posts solution and implementing a bunch of code to asax/etc Use a different port with RequireHttps filter in MVC2 I thought I could probably just extend the attribute. I've done this with AuthorizeAttribute and it worked well. How do I see what the base RequireHttpsAttribute is doing? Code definition of course only gives signature, MSDN does the same. Do I have to download MVC2 source from somewhere or something?

Other ideas appreciated.


You can download the source from CodePlex. You can also use RedGate's Reflector to decompile the DLL and view the source.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜