
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
heroku-ssl-redirect
Advanced tools
Redirect users to the SSL version of your app. For ExpressJS running on Heroku
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Redirect users to the SSL version of your app. For ExpressJS running on Heroku.
This module works only with import, don't try to use require.
yarn add heroku-ssl-redirect
import sslRedirect from 'heroku-ssl-redirect';
import express from 'express';
const app = express();
// enable ssl redirect
app.use(sslRedirect());
app.get('/', (req, res) => {
res.send('hello world');
});
app.listen(process.env.PORT || 3000);
Default environment is production, if you need enable redirect with other environment you need send an array argument.
app.use(sslRedirect([
'other'
'development',
'production'
]));
By default a 302 will be used to redirect. A 301 can be configured with the second argument.
app.use(sslRedirect(['production'], 301));
FAQs
Redirect users to the SSL version of your app. For ExpressJS running on Heroku
The npm package heroku-ssl-redirect receives a total of 5,692 weekly downloads. As such, heroku-ssl-redirect popularity was classified as popular.
We found that heroku-ssl-redirect demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.