Skip to content

Conversation

kouts
Copy link
Contributor

@kouts kouts commented Aug 22, 2025

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

This PR adds the csrf attribute to the routeRules config so that per-route CSRF configuration is now possible.
Resolves #651

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes (if not applicable, please state why)

No changes needed in the docs as they already state "Use csurf: false directly" so the fix in this PR made the docs-recommended syntax actually work.

Copy link

vercel bot commented Aug 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
nuxt-security Ready Ready Preview Comment Aug 22, 2025 5:05pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeScript error for Per-Route CSRF Configuration
1 participant