force HTTPS connections to your app
Want to see pretty graphs? Log in now!
npm install force-secure
|2||downloads in the last day|
|12||downloads in the last week|
|35||downloads in the last month|
|Last Published By|
|Version||1.0.4 last updated 8 months ago|
|Keywords||ssl, https, express, middleware|
Redirect users on plain HTTP connections to HTTPS. For Express apps.
Make sure to put it before any other middleware, especially
If you're behind a reverse proxy or load balancer (such as on the awesome Nodejitsu PaaS), you'll have to tell Express to trust the proxy's
If you're not using Express, you can use the trust-proxy middleware for this.