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

[7.x] Set the X-CSRF-Token header on ajax call #3135

Merged
merged 1 commit into from
Jan 24, 2024
Merged

Conversation

jcoyne
Copy link
Member

@jcoyne jcoyne commented Jan 23, 2024

If you aren't using rails-ujs (which is obsolete), this needs to be handled manually or you will get 422 responses due to " Can't verify CSRF token authenticity"

If you aren't using rails-ujs (which is obsolete), this needs to be handled manually
@jcoyne jcoyne changed the title Set the X-CSRF-Token header on ajax call [7.x] Set the X-CSRF-Token header on ajax call Jan 23, 2024
@corylown corylown merged commit 85ad4cf into release-7.x Jan 24, 2024
11 checks passed
@corylown corylown deleted the csrf-protection branch January 24, 2024 14:58
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