nuxt-security v2.0.0-beta.0
Nuxt Security
Automatically configure your app to follow OWASP security patterns and principles by using HTTP Headers and Middleware.
This module works with Nuxt 3 only
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-By
header 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:prepare
to generate type stubs. - Use
yarn dev
to start playground in development mode.
License
4 days ago
11 days ago
14 days ago
14 days ago
14 days ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
5 months ago
5 months ago
6 months ago
6 months ago
7 months ago
7 months ago
10 months ago
11 months ago
10 months ago
10 months ago
10 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago