What is use of AntiForgeryToken?
AntiForgeryToken() Generates a hidden form field (anti-forgery token) that is validated when the form is submitted. Why are use HTML AntiForgeryToken ()? This is to prevent Cross-site request forgery in your MVC application. This is part of the OWASP Top 10 and it is vital in terms of web security. Using the @Html. AntiforgeryToken() method will generate a token per …