Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set csrf token on response for bypassed POST urls #150

Closed

Conversation

aravindsrivats
Copy link

When a URL is added to be bypassed, CSRF is not set in the response which leads to subsequent POST requests throwing a 403.
This change sets the CSRF token in res.locals before bypassing the validation.

Fixes - #142

@stramel stramel closed this Jan 31, 2025
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.

2 participants