Skip to content

fix(csrf): add csrf config to routeRules#652

Merged
Baroshem merged 1 commit intoBaroshem:chore/2.5.0from
kouts:fix/issue-651_enable_per_route_csrf_config
Nov 14, 2025
Merged

fix(csrf): add csrf config to routeRules#652
Baroshem merged 1 commit intoBaroshem:chore/2.5.0from
kouts:fix/issue-651_enable_per_route_csrf_config

Conversation

@kouts
Copy link
Copy Markdown
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.

@vercel
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Owner

@Baroshem Baroshem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the amazing work! Merging it to the release branch :)

@Baroshem Baroshem changed the base branch from main to chore/2.5.0 November 14, 2025 09:27
@Baroshem Baroshem merged commit 93e5dc2 into Baroshem:chore/2.5.0 Nov 14, 2025
6 checks passed
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

2 participants