force HTTPS connections to your app
npm install force-secure
|12||downloads in the last month|
|Version||1.0.4 last updated 7 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.