Loading docs/ref/csrf.txt +8 −0 Original line number Diff line number Diff line Loading @@ -139,6 +139,14 @@ newer: } }); If you're using AngularJS 1.1.3 and newer, it's sufficient to configure the ``$http`` provider with the cookie and header names: .. code-block:: javascript $http.defaults.xsrfCookieName = 'csrftoken'; $http.defaults.xsrfHeaderName = 'X-CSRFToken'; Other template engines ---------------------- Loading Loading
docs/ref/csrf.txt +8 −0 Original line number Diff line number Diff line Loading @@ -139,6 +139,14 @@ newer: } }); If you're using AngularJS 1.1.3 and newer, it's sufficient to configure the ``$http`` provider with the cookie and header names: .. code-block:: javascript $http.defaults.xsrfCookieName = 'csrftoken'; $http.defaults.xsrfHeaderName = 'X-CSRFToken'; Other template engines ---------------------- Loading