本文介绍了为什么AppHarbor + RequireHttpsAttribute等于frowny面:(的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天首先部署AppHarbor。经过一些初步的工作得到它的打造,我成功地部署了MVC3应用程序。

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

有与使用RequireHttpsAttribute虽然有问题。我注意到在:第一,HTTP页面被工作正常,但https网页都拿到了该网页有重定向循环错误。

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.

我已经意味着需要HTTPS整个应用程序,所以我去了,在Global.asax中添加了一个全球性RequireHttpsAttribute过滤器。现在每个单页得到重定向循环错误,在Chrome和FF。

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.

假设这事做的幕后端口重定向。如何解决呢?我需要一个定制RequireHttpsAttribute?

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

推荐答案

找到答案here和。自定义RequireHttpsAttribute覆盖是必要的。

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

这篇关于为什么AppHarbor + RequireHttpsAttribute等于frowny面:(的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-01 10:13