#23800: Middleware CSRF validation is unclear for PUT and DELETE
------------------------------+--------------------------------------
     Reporter:  MarkLC        |                    Owner:  nobody
         Type:  Bug           |                   Status:  closed
    Component:  contrib.csrf  |                  Version:  master
     Severity:  Normal        |               Resolution:  invalid
     Keywords:                |             Triage Stage:  Unreviewed
    Has patch:  0             |      Needs documentation:  0
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  0             |                    UI/UX:  0
------------------------------+--------------------------------------
Changes (by tricoder42):

 * status:  new => closed
 * needs_better_patch:   => 0
 * resolution:   => invalid
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 During `POST` request, the `CSRF` token is taken from `request.POST`, all
 other "unsafe" methods, `PUT`, `PATCH`, `DELETE`, should set the
 `X-CSRFToken` as described in
 [https://docs.djangoproject.com/en/1.7/ref/contrib/csrf/#ajax
 documentation].

--
Ticket URL: <https://code.djangoproject.com/ticket/23800#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.f14d545f65873178da8607854b55e4de%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to