Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanburnette/express-force-https
Express or Node.js HTTP middleware for forcing all connections to HTTPS using a header redirect.
https://github.com/ryanburnette/express-force-https
Last synced: 17 days ago
JSON representation
Express or Node.js HTTP middleware for forcing all connections to HTTPS using a header redirect.
- Host: GitHub
- URL: https://github.com/ryanburnette/express-force-https
- Owner: ryanburnette
- License: isc
- Created: 2019-10-28T03:54:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-29T20:00:09.000Z (over 4 years ago)
- Last Synced: 2024-12-20T06:47:45.117Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# [express-force-https](https://github.com/ryanburnette/express-force-https)
[![repo](https://img.shields.io/badge/repository-Github-black.svg?style=flat-square)](https://github.com/ryanburnette/express-force-https)
[![npm](https://img.shields.io/badge/package-NPM-green.svg?style=flat-square)](https://www.npmjs.com/package/@ryanburnette/express-force-https)Express.js middleware to force HTTPS. It works behind a proxy, and on Heroku.
```js
if (process.env.NODE_ENV == 'production') {
app.use(require('@ryanburnette/express-force-https'));
}
```