[Answer]-Csrf_token at get request – does that make sense?

1👍

It depends on your application. If you use HTTP correctly, it has no sense. Simply put: Don’t make data modification methods work on GET requests.

If you’re making a simple web application, make every method that modifies something work with POST (create resources, delete, modify, even logout).

If you’re doing some REST service, use the proper POST, PUT, DELETE, PATCH methods.

0👍

Django’s CSRF middleware doesn’t check the CSRF values on a GET request, so you can omit it without any danger (see also the source code).

Leave a comment