问题
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