#15354: Cookie with CSRF token not always available for AJAX Post requests
------------------------------------+------------------------------
               Reporter:  sayane    |          Owner:  nobody
                   Type:  Bug       |         Status:  new
              Milestone:  1.3       |      Component:  contrib.csrf
                Version:  SVN       |       Severity:  Normal
             Resolution:            |       Keywords:
           Triage Stage:  Accepted  |      Has patch:  1
    Needs documentation:  0         |    Needs tests:  0
Patch needs improvement:  0         |  Easy pickings:  0
------------------------------------+------------------------------

Comment (by lukeplant):

 I'm not going to use the patch here because it will only work if the
 middleware is enabled, and a function named `ensure_csrf_cookie` is going
 to be less surprising if it doesn't have dependencies like that.  I will
 close with a different implementation of `ensure_csrf_cookie` soon.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15354#comment:8>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to