summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/csrf.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/csrf.txt b/docs/ref/csrf.txt
index cb49d28d29..53ed8a5472 100644
--- a/docs/ref/csrf.txt
+++ b/docs/ref/csrf.txt
@@ -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
----------------------