2
Reply

What is the use of AntiForgeryToken() in Asp.Net MVC?

Komara Reddy

Komara Reddy

8y
732
0
Reply

    By using AntiForgeryToken(), We can prevent the XSRF(Cross Site Request Forgery) in MVC.

    By using AntiForgeryToken(), we can prevent the XSS(Cross site scripting)@using(Html.BeginForm()) {@Html.AntiForgeryToken() }