Skip to content
Discussion options

You must be logged in to vote

The XSRF-TOKEN cookie passes the CSRF token through to the javascript layer, so tools like Axios can automatically make requests to non-GET endpoints. The HttpOnly flag needs to be disabled or the cookie cannot be accessed in JS.

If you have an SPA or use something like Inertia, you'll probably need it. If not, you can disable it.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by adampatterson
Comment options

You must be logged in to vote
5 replies
@incon
Comment options

@incon
Comment options

@incon
Comment options

@valorin
Comment options

@adampatterson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants