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:

  1. the _xsrf cookie
  2. any 1 of:
    • the x-xsrftoken header
    • the x-csrftoken header
    • the _xsrf argument (e.g. ?_xsrf=... get request)

so doesn't matter if requests not serviced same instance of web server. true of other web servers too.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -