diff options
| author | userimack <mahendra.k12@gmail.com> | 2016-02-09 19:12:52 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-02-09 09:22:23 -0500 |
| commit | 7a7b82e6f4c34fbfd7a11123986ed74f9f752a48 (patch) | |
| tree | f42853072e42a78fd1e6e0ac138432984c07be50 /docs | |
| parent | 182f98c4c77dcb0262360438a1ab01a80684a7a4 (diff) | |
Fixed #26181 -- Corrected AngularJS CSRF example.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/csrf.txt | 4 |
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 ---------------------- |
