Skip to content

Error 422: InvalidAuthenticityToken for current_user #43

Answered by Gokul595
jessicafarias asked this question in Q&A
Discussion options

You must be logged in to vote

@jessicafarias This is a default behaviour of Rails for non GET requests to protect from CSRF attacks, and not related to API Guard. You can refer below link to know how to skip this check for API requests.

https://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection.html

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jessicafarias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants