[1.9.x] Fixed #26181 -- Corrected AngularJS CSRF example.
Backport of 7a7b82e6f4c34fbfd7a11123986ed74f9f752a48 from master
This commit is contained in:
parent
2d83063a20
commit
f3194d951d
@ -144,8 +144,8 @@ If you're using AngularJS 1.1.3 and newer, it's sufficient to configure the
|
||||
|
||||
.. code-block:: javascript
|
||||
|
||||
$http.defaults.xsrfCookieName = 'csrftoken';
|
||||
$http.defaults.xsrfHeaderName = 'X-CSRFToken';
|
||||
$httpProvider.defaults.xsrfCookieName = 'csrftoken';
|
||||
$httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken';
|
||||
|
||||
Other template engines
|
||||
----------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user