Skip to content

CSRFTokenMismatchError on API routes after upgrade to Blitz 2.0 #4127

Answered by flybayer
antonykamp asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @antonykamp, api endpoints for external integrations do not need anti-CSRF, and therefore usually should not wrap those endpoints with api(). This api wrapper is new in blitz 2, removing it will give you exactly what you had before

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@antonykamp
Comment options

Answer selected by antonykamp
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