Socket
Book a DemoInstallSign in
Socket

httpsonly

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

httpsonly

“httpsonly”

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
62
24%
Maintainers
2
Weekly downloads
 
Created
Source

httpsonly

Node.js CI

Express middleware that redirects http requests to https.

Also sets Strict Transport Security header, telling browsers to visit by HTTPS for the next year. Also hides the powered by express header.

npm install httpsonly

Usage

var httpsonly = require('httpsonly');
app.use(httpsonly()); //app is the express app

License

MIT

FAQs

Package last updated on 31 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts