Skip to content

Make CSRF failures less confusing #2390

@simonw

Description

@simonw

A CSRF failure currently returns a confusing error message:

form-urlencoded POST field did not match cookie

Would be good if that at least linked to relevant docs https://docs.datasette.io/en/stable/internals.html#csrf-protection - since these errors are most likely during development.

On Discord here: https://discord.com/channels/823971286308356157/823971286941302908/1273347775165235391

Relevant:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions