项目
在 GitHub 查看
Baroshem/nuxt-security
关于
🛡 使用 HTTP 标头和中间件,自动配置应用以遵循 OWASP 安全模式和原则
安全与隐私可以做什么
- Security response headers (including CSP for SSG apps)
- Request Size & Rate Limiters
- Cross Site Scripting (XSS) Validation
- Cross-Origin Resource Sharing (CORS) support
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- +3
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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.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
探索相关项目
加载中…
