Skip to content

Conversation

webda2l
Copy link
Contributor

@webda2l webda2l commented Sep 10, 2025

Fix #21362

@carsonbot carsonbot added this to the 7.4 milestone Sep 10, 2025
@webda2l webda2l force-pushed the isCsrfTokenValid branch 2 times, most recently from f7ce0e8 to d885b0c Compare September 10, 2025 10:18

* ``IsCsrfTokenValid::SOURCE_PAYLOAD`` (default): request payload (POST body / json)
* ``IsCsrfTokenValid::SOURCE_QUERY``: query string
* ``IsCsrfTokenValid::SOURCE_HEADER``: request headers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* ``IsCsrfTokenValid::SOURCE_HEADER``: request headers
* ``IsCsrfTokenValid::SOURCE_HEADER``: request header

As it checks only one no?

#[IsCsrfTokenValid(
'delete-item',
tokenKey: 'token',
tokenSource: IsCsrfTokenValid::SOURCE_PAYLOAD | IsCsrfTokenValid::SOURCE_QUERY
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion, but perhaps overkill

Document one simple source and one with combination?

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

Successfully merging this pull request may close these issues.

3 participants