csrf - Does Tornado's XSRF protection work in a round-robin environment? -
i intend use tornado's xsrf protection in web app. wonder: if need scale have cluster of servers, still work - or request fail if preceding request had gone different server?
the xsrf token has no state on server: is not checked against known or stored value, other 2 instances of token in request:
- the
_xsrf
cookie - any 1 of:
- the
x-xsrftoken
header - the
x-csrftoken
header - the
_xsrf
argument (e.g.?_xsrf=...
get
request)
- the
so doesn't matter if requests not serviced same instance of web server. true of other web servers too.
Comments
Post a Comment