Top "Antiforgerytoken" questions

Cryptographic Nonce for anti-CSRF protection

MVC5 AntiForgeryToken Claims/"Sequence contains more than one element"

Case: I have an MVC5 application (basically the MVC5 template with a scaffolded view) with the Google authentication method enabled. …

security asp.net-mvc-5 antiforgerytoken claims
Is it possible/right to use multiple @Html.AntiForgeryToken() in 2 different forms in one page?

I have been facing serious problem with @Html.AntiForgeryToken() . I have a register controller which had a create view to …

asp.net-mvc json asp.net-mvc-3 jquery antiforgerytoken
AntiForgery.Validate() vs ValidateAntiForgeryToken

Does the method System.Web.Helpers.AntiForgery.Validate(); perform exactly the same function as the [ValidateAntiForgeryToken] decoration? I'm thinking of …

asp.net-mvc-4 antiforgerytoken
MVC AntiForgeryToken machinekey for encryption

i came to know : Under the covers, the MVC AntiForgeryToken attribute uses the machinekey for encryption. If you don't specify …

asp.net-mvc antiforgerytoken
How does ValidateAntiForgeryToken fit with Web APIs that can be accessed via web or native app?

I'm trying to understand how I will be able to craft an API using ASP.NET Web API which will …

asp.net-web-api antiforgerytoken
.Net Core ValidateAntiForgeryToken throwing web api 400 error

Visual Studio 2017 with Web Api using .net Core 1.1 I'm using, but I am getting a 400 Bad Request Error. Error Occurs …

c# asp.net-core .net-core asp.net-core-webapi antiforgerytoken
Intermittent error thrown, "A required anti-forgery token was not supplied or was invalid."

I'm occasionally getting this error during normal use, and I've not found a way to stop it without removing the …

asp.net-mvc-2 antiforgerytoken
How to disable the antiforgery token check in ASP.NET MVC Core 2

I am trying to avoid "AntiForgery" checking as it always fails when hosted from the 3rd party server. I am …

asp.net-mvc asp.net-core-2.0 antiforgerytoken
Will ASP.Net MVC's AntiForgeryToken Method work with Load Balancers?

Using ASP.Net MVC v2.0, I am starting to research the use of the Html.AntiForgeryToken() method when submitting forms …

asp.net-mvc security cookies load-balancing antiforgerytoken