Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (26 sloc) 0.952 kb


What is This?

This is an HttpModule for ASP.NET applications that fakes the IsSecureConnection in the Request object.

It understands the X-Forwarded-Proto header sent by an SSL Offloader/Proxy and sets the IsSecureConnection according to it.

It only works for apps running in Integrated mode.


In your web.config, find the system.webServer section and add the module. Example:

  <modules runAllManagedModulesForAllRequests="true">

    <add name="FakeHttpModule" type="ETravel.Web.FakeHttps.HttpModule, ETravel.Web.FakeHttps"/>


Configuration Options

There is only one configuration option. The "FakeHttps.ForceHttps" setting will force the module to mark all incoming connections as secure.

  <add key="FakeHttps.ForceHttps" value="true" />
Jump to Line
Something went wrong with that request. Please try again.