Instead of writing [ValidateAntiForgeryToken] as action attribute in all POST methods , you can configure Startup to auto validate for all POST methods. This is what I did in ConfigureServices method:
Thanks, but this would add a check for every request while I don't think this kind of check is necessary everywhere in an app, but it's safer to add it everywhere.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Instead of writing [ValidateAntiForgeryToken] as action attribute in all POST methods , you can configure Startup to auto validate for all POST methods. This is what I did in ConfigureServices method:
Thanks, but this would add a check for every request while I don't think this kind of check is necessary everywhere in an app, but it's safer to add it everywhere.