
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
node-force-secure-redirect
Advanced tools
Force all incoming HTTP connections to be redirected to secure (HTTPS) version of your express app
Force all incoming HTTP connections to be redirected to secure (HTTPS) version of your express app.
Works for node apps directly behind an Amazon ELB (Elastic Load Balancer).
npm install node-force-secure-redirect --save
var forceHTTPS = require('node-force-secure-redirect');
...
...
...
app.set('trust proxy'); // this is important when your app is behind an ELB
app.use(forceHTTPS('environment'));
where the environment parameter (string or array of strings) are the environment for which you want to enforce SSL on. If no environment string is passed in, HTTPS will not be enforced on any environment.
NODE_ENV=testing npm test
Licensed under GPL v3
Made with love in Dhaka, Bangladesh by Riyadh Al Nur
FAQs
Force all incoming HTTP connections to be redirected to secure (HTTPS) version of your express app
The npm package node-force-secure-redirect receives a total of 1 weekly downloads. As such, node-force-secure-redirect popularity was classified as not popular.
We found that node-force-secure-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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.