mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
Fixed #26181 -- Corrected AngularJS CSRF example.
This commit is contained in:
parent
182f98c4c7
commit
7a7b82e6f4
@ -144,8 +144,8 @@ If you're using AngularJS 1.1.3 and newer, it's sufficient to configure the
|
|||||||
|
|
||||||
.. code-block:: javascript
|
.. code-block:: javascript
|
||||||
|
|
||||||
$http.defaults.xsrfCookieName = 'csrftoken';
|
$httpProvider.defaults.xsrfCookieName = 'csrftoken';
|
||||||
$http.defaults.xsrfHeaderName = 'X-CSRFToken';
|
$httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken';
|
||||||
|
|
||||||
Other template engines
|
Other template engines
|
||||||
----------------------
|
----------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user