Skip to content

Harden admin API against CSRF: SameSite on the session cookie and Content-Type check on JSON binders #571

Description

@compscidr

See #570 review: session cookie has no explicit SameSite; BindJSON accepts text/plain bodies. Set SameSite=Lax (+Secure) and reject non-JSON Content-Type on mutating /api/v1 routes.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions