
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@ax2/redirect-ssl
Advanced tools
Enforce HTTPS on your Nuxt app with Koa backend
Install package
yarn add @ax2/redirect-ssl
Require and use middleware (Make sure adding it as the first in the chain)
const redirectSSL = require('redirect-ssl')
// Add middleware
app.use(redirectSSL)
// Or if want to provide options
app.use(redirectSSL.create({ redirectPort: 8443 }))
trueTrust and check x-forwarded-proto header for HTTPS detection.
process.env.NODE_ENV === 'production'Only enabled in production environment. Force redirecting locally by setting this option to true.
443Redirect users to this port for HTTPS. (:443 is omitted from URL as is default for https:// schema)
undefinedRedirects using this value as host, if omitted will use request host for redirects.
NOTE It should not contain schema or trailing slashes. (Example: google.com)
trueRedirect when no SSL detection method is available too. disable this option if you encounter redirect loops.
307 Temporary RedirectStatus code when redirecting. The reason of choosing 307 for default is:
POST TO GET by user agents. (If you don't care, use 302 Found)308 Permanent Redirect or 301 Moved Permanently)MIT - Nuxt.js
FAQs
Enforce HTTPS on your Nuxt app with Koa backend
We found that @ax2/redirect-ssl 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 new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.