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:38:04 -0500 |
| commit | f3194d951d96dd14e0ffd288649f4e9135ce0ab5 (patch) | |
| tree | a2de519c1dd89b9a30a73a993e4062ebd0fe63ce /docs/ref | |
| parent | 2d83063a20e9dc56fbc5526e7b4373a81608c171 (diff) | |
[1.9.x] Fixed #26181 -- Corrected AngularJS CSRF example.
Backport of 7a7b82e6f4c34fbfd7a11123986ed74f9f752a48 from master
Diffstat (limited to 'docs/ref')
| -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 ---------------------- |
