Proves to the server that a state-changing request comes from a document it served, rather than from a page merely
riding the session cookie.
The convention is the one Angular established and servers widely implement: the server states the token in a
script-readable XSRF-TOKEN cookie, the client echoes it in an X-XSRF-TOKEN field.
XSRF protection middleware.
Proves to the server that a state-changing request comes from a document it served, rather than from a page merely riding the session cookie.
The convention is the one Angular established and servers widely implement: the server states the token in a script-readable
XSRF-TOKENcookie, the client echoes it in anX-XSRF-TOKENfield.Usage
See