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?

7
задан Amirhossein Mehrvarzi 14 November 2015 в 21:14
поделиться