Skip to content

Conversation

@cbergmiller
Copy link
Contributor

Fixes #307 and #786
This is based on #308 (closed, unmerged).
If CSRF_USE_SESSIONS is used there will be no CSRF cookie. In this case the cookie will be read from an hidden input element in the DOM.

@cbergmiller cbergmiller changed the title read csrftoken from DOM if no cookie is set Read csrftoken from DOM if no cookie is set Dec 10, 2019
Copy link
Member

@jkimbo jkimbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good thanks @cbergmiller

@jkimbo jkimbo merged commit 45df744 into graphql-python:master Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GraphQLView fails when using session CSRF

2 participants