What is the Html.AntiForgeryToken helper function for?

后端 未结 5 956
遥遥无期
遥遥无期 2021-02-05 18:51

Can somebody tell me more details about it?

5条回答
  •  抹茶落季
    2021-02-05 19:39

    In general, the anti-forgery-token is an HTML hidden input that that's rendered for you to avoid CSRF attacks. Broadly, it works by comparing the value that the server sent down to the client to what the client sends back on the post. Is that all you're looking for?

    You should probably check out MSDN for more details.

提交回复
热议问题