
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
A lightweight hapi plugin that adds basic redirections to your server ( http -> https and www/non-www redirects)
As a default, any incoming http request will be redirected (301) to the same host and path with https as the protocol.
Highly influenced from hapi-require-https. If you're only looking for https redirections, you can use that plugin..
Load the plugin as you would normally do and we're set!
server.register({
register: require('hapi-gate'),
options: {https: true,
www: true} // will force https and www on all requests
})
Type: boolean
Default: true
Indicates whether the server should redirect any non-https calls to the https protocol
Type: boolean
Default: false
Indicates whether or not the server is behind a proxy handling the https traffic. Redirections will then be made based on the X-Forwarded-Proto header.
Type: boolean
Default: false
Indicates whether the server should redirect any non-www requests to the www subdomain. For instance, after setting this to true, a request made to https://example.com will be redirected (301) to https://www.example.com
Type: boolean
Default: false
Indicates whether the server should redirect any www subdomain requests to the root domain. For instance, after setting this to true, a request made to https://www.example.com will be redirected (301) to https://example.com
FAQs
hapi http -> https and www <-> non-www redirections
The npm package hapi-gate receives a total of 20 weekly downloads. As such, hapi-gate popularity was classified as not popular.
We found that hapi-gate 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.