Skip to content

Handling 419 for authenticated users #1989

Answered by RobertBoes
AtteR asked this question in Help (Vue)
Discussion options

You must be logged in to vote

This is because it's sending back a 302 response, the follow-up request is made by the browser, and a 302 means the browser would use the same protocol that was used for the initial request. Usually Inertia intervenes at the backend, by changing it to a 303 response, telling the browser the follow-up should be performed using GET. However, because there is an exception, Inertia's middleware doesn't run. So an easy solution would be to return a 303 response instead of a 302.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by AtteR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants