Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes CSRF token from GET requests #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Removes CSRF token from GET requests #31

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 17, 2017

GET requests do not require CSRF protection and will clutter your URLs by being submitted along with other search parameters. As an example of what this is fixing, here's one of your URLs at the moment: http://django.dsini20.schedar.uberspace.de/mainApp/search/fulltext?csrfmiddlewaretoken=oFtKLenT0Wdv3rJOUQPlYvigdp1qUOlR&query=test

With this patch the same GET request would look like: http://django.dsini20.schedar.uberspace.de/mainApp/search/fulltext?query=test

GET requests do not require CSRF protection and will clutter your URLs by being submitted along with other search parameters. Here's an example of what this is fixing: 'http://django.dsini20.schedar.uberspace.de/mainApp/search/fulltext?csrfmiddlewaretoken=oFtKLenT0Wdv3rJOUQPlYvigdp1qUOlR&query=test'
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.

0 participants