Skip to content

Consider using session-based CSRF tokens #3287

Description

@jiru

CakePHP 4.2 introduced session-based CSRF tokens:

Instead of storing CSRF tokens in a cookie, this middleware stores tokens in the session. This makes CSRF tokens user scoped and time based with the session, offering enhanced security over cookie based CSRF tokens. This middleware is a drop in replacement for the CsrfProtectionMiddleware.

We can consider using this, and then, we no longer need to manually set any CSRF token when doing ajax requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIssue that describes a problem that requires a change in the current functionalities of Tatoeba.maintenanceIssue that keeps the code base clean and does not change anything from the users point of view.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions