Top "Antiforgerytoken" questions

Cryptographic Nonce for anti-CSRF protection

A required anti-forgery token was not supplied or was invalid

Im using MVC 3 and everything is setup correctly from what I can see. A user Authenticates submits a form with …

c# asp.net-mvc model-view-controller antiforgerytoken
What is .AspNetCore.Antiforgery.xxxxxxx cookie in .Net Core?

I was trying to use ValidateAntiForgeryToken in .Net Core but I was getting .AspNetCore.Antiforgery.xxxxxxx cookie is missing. What …

c# .net asp.net-core .net-core antiforgerytoken
ASP.NET MVC - ValidateAntiForgeryToken expiring

In a web page we provide a hyperlink (GET) that the User may click on to authenticate: @Html.ActionLink("Please …

asp.net-mvc asp.net-mvc-3 security csrf antiforgerytoken
How to use ValidateAntiForgeryToken at controller level in MVC?

I have ASP.NET Core application. I have been using ValidateAntiForgeryToken attribute on all POST action methods so far. Now …

asp.net-mvc asp.net-core asp.net-core-mvc antiforgerytoken coreclr
How to include the @Html.AntiForgeryToken() when deleting an object using a Delete link

i have the following ajax.actionlink which calls a Delete action method for deleting an object:- @if (!item.IsAlreadyAssigned(…

asp.net-mvc-3 antiforgerytoken
Why does @Html.AntiForgeryToken() generate different tokens in same response?

A single Razor view contains several forms, each with its own call to @Html.AntiForgeryToken() <form id="f1"> @…

asp.net-mvc security asp.net-mvc-4 razor antiforgerytoken
Asp.Net Core 1.1 The key was not found in the key ring

DEFAULT PROJECT IN VS 2017 I have created a new Asp.net Core web application in vs 2017 community and published it …

asp.net asp.net-core antiforgerytoken
When the use of a AntiForgeryToken is not required /needed?

UPD: Same question asked on security.stackexchange.com and the answer I got is different. Please follow there, to get …

asp.net-mvc-3 csrf antiforgerytoken
If I add multiple forms in a single page, do I need to add separate Anti-Forgery Tokens in each form?

If the answer is yes then how would ASP.NET MVC find out that which token was linked to which …

asp.net-mvc antiforgerytoken
anti-CSRF token and Javascript

I'm trying to protect an application (php and lots of JS) from CSRF. I want to use tokens. A lot …

ajax security csrf antiforgerytoken