ASP.NET MVC HTML.AntiForgeryToken() with multiple AJAX requests from one page
问题 I'm creating a page that makes multiple AJAX form posts without a page refresh. I would like to use the ASP.NET MVC HTML.AntiForgeryToken() helper to secure the form against CSRF attacks. I think that each form on the page can share the same token, but will it allow multiple requests with the same token? If not is there a way to get a new token or some other way to secure the forms? 回答1: You can share the same token. Of course, as a general rule, it's highly recommended to wrap your Ajax