EnforceSSL

Added by Postmodern at October 12, 2009 02:34 Star_smallStar_smallStar_smallStar_small_grayStar_small_gray
GitHub stats:
Magnifier watcher(s)
Arrow_branch fork(s)
Wrench

About

EnforceSSL is a Rack middleware app that enforces that users visit specific paths via HTTPS. If a sensitive path is requested over plain-text HTTP, a 307 Redirect will be issued leading to the HTTPS version of the Requested URI.

Usage

use Rack::EnforceSSL, ['/login', /\.xml$/]
blog comments powered by Disqus