jQuery Ajax calls and the Html.AntiForgeryToken()

前端 未结 20 2541
鱼传尺愫
鱼传尺愫 2020-11-22 16:34

I have implemented in my app the mitigation to CSRF attacks following the informations that I have read on some blog post around the internet. In particular these post have

20条回答
  •  無奈伤痛
    2020-11-22 17:32

    I aware it's been some time since this question was posted, but I found really useful resource, which discusses usage of AntiForgeryToken and makes it less troublesome to use. It also provides jquery plugin for easily including antiforgery token in AJAX calls:

    Anti-Forgery Request Recipes For ASP.NET MVC And AJAX

    I'm not contributing much, but maybe someone will find it useful.

提交回复
热议问题