What is the use of @Html.AntiForgeryToken()?

This is a security feature to help protect your application against cross-site request forgery. Example: Let’s assume you have a register functionality in your web app. You have an AccountController (example.com/account/register) where you expect people to submit their info. Normally before someone posts the registration information needs to visit the actual (example.com/account/register) than submit the form. Let … Read more