Fixed #26181 -- Corrected AngularJS CSRF example.

This commit is contained in:
userimack 2016-02-09 19:12:52 +05:30 committed by Tim Graham
parent 182f98c4c7
commit 7a7b82e6f4
1 changed files with 2 additions and 2 deletions

View File

@ -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
----------------------