#30641: Update docs for using CSRF with Ajax.
-------------------------------------+-------------------------------------
Reporter: JeroenvO | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Documentation | Version: master
Severity: Normal | Resolution: wontfix
Keywords: csrf token jquery | Triage Stage:
context templatetag ajax | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):
* status: new => closed
* resolution: => wontfix
* version: 2.2 => master
* component: CSRF => Documentation
Comment:
Thanks for the report, but I believe that the current recommendation is
better because it works if:
{{{
<script type="text/javascript">
var csrftoken = jQuery("[name=csrfmiddlewaretoken]").val();
</script>
}}}
is a part of external JavaScript file (see
[https://github.com/django/django/pull/5600#issuecomment-229771095
extensive discussion in PR]).
--
Ticket URL: <https://code.djangoproject.com/ticket/30641#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/066.9d081003b1b26cf11150b932a4c48c89%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.