Baroshem/nuxt-security
Baroshem/nuxt-security has 982 GitHub stars and 86 forks. GitHot measured 0 stars in 24 hours and +1 in 7 days. Last checked 2026-11-09 23:58 UTC. Last push 2026-10-24.
🛡 Automatically configure your app to follow OWASP security patterns and principles by using HTTP Headers and Middleware
What you can do
- Security response headers (including CSP for SSG apps)
- Request Size & Rate Limiters
- Cross Site Scripting (XSS) Validation
- Cross-Origin Resource Sharing (CORS) support
Measured star growth
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalNuxt Security
Automatically configure your app to follow OWASP security patterns and principles by using HTTP Headers and Middleware.
This module works with Nuxt 3.X and newer (4.X)
Features
- Security response headers (including CSP for SSG apps)
- Request Size & Rate Limiters
- Cross Site Scripting (XSS) Validation
- Cross-Origin Resource Sharing (CORS) support
- Hide
X-Powered-Byheader and remove console loggers utils [Optional]Allowed HTTP Methods, Basic Auth, CSRF
Usage
Install the module:
npx nuxi@latest module add security
And that's it! The module will now register route rules and server middlewares globally so that your application will be more secured.
Configuration
You can pass configuration to the module in the nuxt.config.ts like following:
export default defineNuxtConfig({
modules: ["nuxt-security"],
security: {
// options
}
})
For all available configuration options check out the docs.
Development
- Run
yarn dev:prepareto generate type stubs. - Use
yarn devto start playground in development mode.
License
Explore related projects
trimstray/the-book-of-secret-knowledge
A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more.
257,387 starsHack-with-Github/Awesome-Hacking
A collection of various awesome lists for hackers, pentesters and security researchers
125,103 starsswisskyrepo/PayloadsAllTheThings
A list of useful payloads and bypass for Web Application Security and Pentest/CTF
82,542 starscaddyserver/caddy
Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
78,935 stars