Skip to content

Require hard checks on JSON content type for any authentication endpoints #30

@dlongley

Description

@dlongley

All endpoints generally (if possible) and certainly any authentication endpoints should require a specific content type of JSON (application/json, or a subtype application/(([*])+)json, e.g., application/ld+json). No other types like text/plain should be permitted. This is to prevent CSRF (cross site request forgery) on all non-CORS-supported endpoints without needing to include additional CSRF protections like tokens, etc. The csrf library we're using here or in related layers has been deprecated and needs to be removed -- and we don't need it.

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