
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
This module is a H3/Nuxt version of the popular Express Middleware [helmet](https://helmetjs.github.io/) or check out the [GitHub Repository](https://github.com/helmetjs/helmet). `nuxt-helm` automatically sets the same response headers for H3 events as a
This module is a H3/Nuxt version of the popular Express Middleware helmet or check out the GitHub Repository. nuxt-helm automatically sets the same response headers for H3 events as a global Nuxt middleware.
yarn add nuxt-helm # yarn
npm i nuxt-helm # npm
// nuxt.config.js
{
modules: [
"nuxt-helm",
],
}
The module will configure for you several response headers with the values recommended by Helmet.
If you wish to modify them you can do so from the configuration:
helm: {
crossOriginResourcePolicy: string | boolean;
crossOriginOpenerPolicy: string | boolean;
crossOriginEmbedderPolicy: string | boolean;
contentSecurityPolicy: string | boolean;
originAgentCluster: string | boolean;
referrerPolicy: string | boolean;
strictTransportSecurity: string | boolean;
xContentTypeOptions: string | boolean;
xDNSPrefetchControl: string | boolean;
xDownloadOptions: string | boolean;
xFrameOptions: string | boolean;
xPermittedCrossDomainPolicies: string | boolean;
xXSSProtection: number | boolean;
}
The default values are as follows:
helm: {
crossOriginResourcePolicy: "same-origin",
crossOriginOpenerPolicy: "same-origin",
crossOriginEmbedderPolicy: "require-corp",
contentSecurityPolicy: "default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests",
originAgentCluster: '?1',
referrerPolicy: 'no-referrer',
strictTransportSecurity: 'max-age=15552000; includeSubDomains',
xContentTypeOptions: 'nosniff',
xDNSPrefetchControl: 'off',
xDownloadOptions: 'noopen',
xFrameOptions: 'SAMEORIGIN',
xPermittedCrossDomainPolicies: 'none',
xXSSProtection: 0
}
npm run dev:prepare to generate type stubs.npm run dev to start playground in development mode.FAQs
This module is a H3/Nuxt version of the popular Express Middleware [helmet](https://helmetjs.github.io/) or check out the [GitHub Repository](https://github.com/helmetjs/helmet). `nuxt-helm` automatically sets the same response headers for H3 events as a
We found that nuxt-helm 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
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.