Skip to content

feat: allow to rename xsrf-token #56268

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

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

Conversation

Barbapapazes
Copy link

Hello 👋,

This is a following PR to the issue #56238.

It introduces a new configuration option xsrf-token in the session.php configuration file, allowing developers to customize the name of the XSRF token cookie. I'm unsure about the name of this field.

Also, I had to read the config from the static method serialized in the VerifyCsrfToken middleware. I'm unsure if this is the best way to do it, but it works.

@Barbapapazes Barbapapazes force-pushed the feat/allow-to-rename-xsrf-token branch from 2cf696b to 639a240 Compare July 11, 2025 11:44
@Barbapapazes Barbapapazes force-pushed the feat/allow-to-rename-xsrf-token branch from 639a240 to eb2f730 Compare July 11, 2025 11:45
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