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

Add Sanctum CSRF Token Encoding Info #10089

Open
wants to merge 1 commit into
base: 11.x
Choose a base branch
from
Open

Conversation

aMytho
Copy link

@aMytho aMytho commented Dec 27, 2024

This PR adds info to indicate that the CSRF token is URI encoded.

The token must be decoded before it is sent from the client to the server. The examples show how to do this with Axios. I mistakenly assumed that Axios was simply adding the xsrf-token header. However, it is also decoding the URI encoded token automatically. This wasn't specified in the docs which created issues when I tried to use CSRF with fetch.

(Followup for #10085)

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.

1 participant