Why does AppHarbor + RequireHttpsAttribute equal frowny-face :(

和自甴很熟 提交于 2019-12-10 12:44:34

问题


First deployment to AppHarbor today. After some initial work getting it to build, I successfully deployed an MVC3 app.

There is a problem with using the RequireHttpsAttribute though. I noticed at first that http pages were working fine, but https pages were getting the error that the web page has a redirect loop.

I have been meaning to require https for the entire app, so I went and added a global RequireHttpsAttribute filter in global.asax. Now every single page is getting the redirect loop error, in chrome and FF.

Assume this has something to do with port redirecting behind the scenes. How to fix it? Do I need a custom RequireHttpsAttribute?


回答1:


Found the answers here and here. A custom RequireHttpsAttribute override was necessary.



来源:https://stackoverflow.com/questions/8976686/why-does-appharbor-requirehttpsattribute-equal-frowny-face

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!