force-secure
v1.0.4
Published
force HTTPS connections to your app
Downloads
13
Readme
force-secure
Redirect users on plain HTTP connections to HTTPS. For Express apps.
API
app.use(require('force-secure'))
Proxies
If you're behind a reverse proxy or load balancer (such as on the awesome (Nodejitsu)[http://nodejitsu.com] PaaS), you'll have to tell Express to trust the proxy's X-Forwarded-Proto
header.
app.enable('trust proxy')