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