I have many Ajax.ActionLink
's on my ASP.NET MVC (v1) page that perform destructive operations. This is "legal" because I set HttpMethod to DELETE
in this case so it's not a destructive GET
.
My question though is how to mitigate XSRF attacks on this operation so that other sites cannot craft this same Ajax DELETE
request to delete user data from another site. This ActionLink does appear within a form that includes <%= Html.AntiForgeryToken() %>
but since ActionLinks don't post the form, the anti-forgery token doesn't go to the controller, so it can't validate it.