2013-04-23 2 views

답변

1

열고 ELMAH 컨트롤러 다음과 같은 속성을 추가

[RequireHttps] 

예 : GitHub project

+1

넵에서 가져온 ELMAH 컨트롤러

using System.Web.Mvc; namespace Elmah.Mvc { [Authorize] [RequireHttps] public class ElmahController : Controller { public ActionResult Index(string resource) { /* Adapted by Alexander Beletsky */ return new ElmahResult(); } public ActionResult Detail(string resource) { /* Adapted by Alexander Beletsky */ return new ElmahResult(); } } } 

소스 코드, 감사, 나는 궁금했습니다 누군가가 Https를 사용하도록 ELMAH 구성을 확장했습니다. –

+0

나는 누구도 그렇게 해본 적이 없다고 생각하지만,이 작은 수정이 당신을 위해 잘 된 것을 기쁘게 생각합니다! – Tommy