From 7a7b82e6f4c34fbfd7a11123986ed74f9f752a48 Mon Sep 17 00:00:00 2001 From: userimack Date: Tue, 9 Feb 2016 19:12:52 +0530 Subject: [PATCH] Fixed #26181 -- Corrected AngularJS CSRF example. --- docs/ref/csrf.txt | 4 ++-- 1 file 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 ----------------------