Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does AppHarbor + RequireHttpsAttribute equal frowny-face :(

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?

like image 353
danludwig Avatar asked Jan 23 '12 18:01

danludwig


1 Answers

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

like image 81
danludwig Avatar answered Oct 17 '22 16:10

danludwig