ASP.net MVC AntiForgeryToken over AJAX

前端 未结 6 1893
清酒与你
清酒与你 2020-12-10 16:08

I am currently developing an MVC application in ASP.net. I am using AJAX.ActionLink to provide a delete link in a list of records, however this is very insecure. I have put

6条回答
  •  天命终不由人
    2020-12-10 16:33

    I haven't used any ajax helpers myself, but I don't see any reason why you cannot use a link. Personally I would use an onload event handler to unobtrusively create a link from the form itself, and then remove the form.

提交回复
热议问题