Will ASP.Net MVC's AntiForgeryToken Method work with Load Balancers?

前端 未结 1 706
Happy的楠姐
Happy的楠姐 2021-01-01 15:30

Using ASP.Net MVC v2.0, I am starting to research the use of the Html.AntiForgeryToken() method when submitting forms that process data. I can see it sets a hid

1条回答
  •  独厮守ぢ
    2021-01-01 15:49

    If all machines across the farm share the same , everything will work. There are lots of resources on how to set this. There's also a tutorial on MSDN.

    Note that the name is a bit misleading, since this is actually set per-application in ~/Web.config. So set the explicitly in your app's Web.config, then deploy across your farm.

    0 讨论(0)
提交回复
热议问题