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
_xsrfcookie - any 1 of:
- the
x-xsrftokenheader - the
x-csrftokenheader - the
_xsrfargument (e.g.?_xsrf=...getrequest)
- the
so doesn't matter if requests not serviced same instance of web server. true of other web servers too.
Comments
Post a Comment