IgnoreAntiforgeryTokenAttribute
CS-A1011Antiforgery token is used in validation and establishing identity to an extent before serving the required data or resource. This potentially helps prevent security issues. The IgnoreAntiforgeryTokenAttribute
, however, skips this token's validation. It is recommended that you not use this token to skip the validation.
[HttpPost, IgnoreAntiforgeryToken]
public IActionResult PostResults(Model m)
{
// ...
}
[HttpPost]
public IActionResult PostResults(Model m)
{
// ...
}