aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/browserSpecs.js
diff options
context:
space:
mode:
authorSam McCall2013-02-05 13:37:36 +0100
committerIgor Minar2013-02-07 01:48:01 -0800
commit8155c3a29ea0eb14806913b8ac08ba7727e1969c (patch)
tree165bd3c4038eb02c2dd5c1eed8fe6eaebe3da270 /test/ng/browserSpecs.js
parentb001c8ece5472626bf49cf82753e8ac1aafd2513 (diff)
downloadangular.js-8155c3a29ea0eb14806913b8ac08ba7727e1969c.tar.bz2
feat($http): allow overriding the XSRF header and cookie name
Add 'xsrfCookieName' and 'xsrfHeaderName' property to $httpProvider.defaults and http config object, which give the name of the cookie the XSRF token is found in, and the name of the header it is sent in, respectively. This allows interop with servers with built-in XSRF support that use different names. The defaults match the current hard-coded values of 'XSRF-TOKEN' and 'X-XSRF-TOKEN'.
Diffstat (limited to 'test/ng/browserSpecs.js')
0 files changed, 0 insertions, 0 deletions