web-farm-framework

Web Farm Framework and MVC 3: How to require Https on an Action Method?

拈花ヽ惹草 提交于 2020-01-15 06:55:24
问题 I know you can do this: #if !DEBUG [RequireHttps] //apply to this action only #endif What if you are using Web Farm Framework where "the Controller" server receives an outside SSL 443 request, decrypts it, then forwards it to the Primary / Secondary servers using http 80 (without ssl?) In this environment, I tried the [RequireHttps] attribute but it responded with "The page isn't redirecting properly" in Firefox. Firefox has detected that the server is redirecting the request for this address