{"id":14964207,"url":"https://github.com/baroshem/nuxt-security","last_synced_at":"2026-01-17T02:56:57.565Z","repository":{"id":61677001,"uuid":"547877672","full_name":"Baroshem/nuxt-security","owner":"Baroshem","description":"🛡 Automatically configure your app to follow OWASP security patterns and principles by using HTTP Headers and Middleware","archived":false,"fork":false,"pushed_at":"2025-03-19T20:10:52.000Z","size":5284,"stargazers_count":889,"open_issues_count":36,"forks_count":68,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-09T00:34:41.291Z","etag":null,"topics":["basic-authentication","cors","csrf","headers-security","module","nonce","nuxt","owasp","rate-limiting","security","vue","xss"],"latest_commit_sha":null,"homepage":"https://nuxt-security.vercel.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Baroshem.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-10-08T13:27:30.000Z","updated_at":"2025-05-02T20:35:46.000Z","dependencies_parsed_at":"2023-02-16T06:01:29.147Z","dependency_job_id":"9943cc80-f369-4efb-adb2-8031b6a56a98","html_url":"https://github.com/Baroshem/nuxt-security","commit_stats":{"total_commits":544,"total_committers":50,"mean_commits":10.88,"dds":0.6636029411764706,"last_synced_commit":"6005b460ed7d641539f6e5bfe031ccdd89459463"},"previous_names":["nuxt-modules/security","baroshem/security","baroshem/nuxt-security"],"tags_count":51,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baroshem%2Fnuxt-security","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baroshem%2Fnuxt-security/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baroshem%2Fnuxt-security/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baroshem%2Fnuxt-security/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Baroshem","download_url":"https://codeload.github.com/Baroshem/nuxt-security/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254040732,"owners_count":22004601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["basic-authentication","cors","csrf","headers-security","module","nonce","nuxt","owasp","rate-limiting","security","vue","xss"],"created_at":"2024-09-24T13:32:46.389Z","updated_at":"2026-01-17T02:56:57.559Z","avatar_url":"https://github.com/Baroshem.png","language":"TypeScript","readme":"[![nuxt-security](https://nuxt-security.vercel.app/preview.png)](https://nuxt-security.vercel.app)\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]\n[![License][license-src]][license-href]\n[![Nuxt][nuxt-src]][nuxt-href]\n\n# Nuxt Security\n\nAutomatically configure your app to follow OWASP security patterns and principles by using HTTP Headers and Middleware.\n\n\u003e This module works with Nuxt 3.X and newer (4.X)\n\n- [📖 \u0026nbsp;Read the documentation](https://nuxt-security.vercel.app)\n- [👾 \u0026nbsp;Playground](https://nuxt-security.vercel.app/playground)\n\n## Features\n\n- Security response headers (including CSP for SSG apps)\n- Request Size \u0026 Rate Limiters\n- Cross Site Scripting (XSS) Validation\n- Cross-Origin Resource Sharing (CORS) support\n- Hide `X-Powered-By` header and remove console loggers utils\n- `[Optional]` Allowed HTTP Methods, Basic Auth, CSRF\n\n## Usage\n\nInstall the module:\n\n```sh\nnpx nuxi@latest module add security\n```\n\nAnd that's it! The module will now register route rules and server middlewares globally so that your application will be more secured.\n\n## Configuration\n\nYou can pass configuration to the module in the `nuxt.config.ts` like following:\n\n```ts\nexport default defineNuxtConfig({\n  modules: [\"nuxt-security\"],\n  security: {\n    // options\n  }\n})\n```\n\nFor all available configuration options check out the [docs](https://nuxt-security.vercel.app/getting-started/configuration).\n\n## Development\n\n- Run `yarn dev:prepare` to generate type stubs.\n- Use `yarn dev` to start playground in development mode.\n\n## License\n\n[MIT License](./LICENSE.md)\n\n\u003c!-- Badges --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/v/nuxt-security/latest.svg\n[npm-version-href]: https://npmjs.com/package/nuxt-security\n[npm-downloads-src]: https://img.shields.io/npm/dt/nuxt-security.svg\n[npm-downloads-href]: https://npmjs.com/package/nuxt-security\n[github-actions-ci-src]: https://github.com/baroshem/nuxt-security/actions/workflows/ci.yml/badge.svg\n[github-actions-ci-href]: https://github.com/baroshem/nuxt-security/actions?query=workflow%3Aci\n[license-src]: https://img.shields.io/npm/l/nuxt-security.svg\n[license-href]: https://npmjs.com/package/nuxt-security\n[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt\n[nuxt-href]: https://nuxt.com\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaroshem%2Fnuxt-security","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaroshem%2Fnuxt-security","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaroshem%2Fnuxt-security/lists"}