Skip to content

GraphQLView fails when using session CSRF #307

Closed
@nealedj

Description

@nealedj

If settings.CSRF_USE_SESSIONS == True or using https://github.com/mozilla/django-session-csrf then Django rejects all AJAX POST requests made by the GraphQLView.

The GraphQLView reads the CSRF token from the cookie.

Perhaps it should be read from the DOM instead?

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