skip to main | skip to sidebar

Ravinder Reddy Gopidi(ravi.gopidi@gmail.com)

Sunday, September 6, 2020

AntiForgery in MVC

Prevent Cross-Site Request Forgery (XSRF/CSRF) attacks in ASP.NET Core


AntiForgeryConfig.UniqueClaimTypeIdentifier = ClaimsIdentity.DefaultNameClaimType;


[HttpPost, ActionName("Edit")] [ValidateAntiForgeryToken] public ActionResult EditPost(int? id) {

}

Posted by Ravinder Reddy Gopidi (ravi.gopidi@gmail.com) at 2:51 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2026 (1)
    • ►  February (1)
  • ►  2021 (7)
    • ►  November (1)
    • ►  April (4)
    • ►  January (2)
  • ▼  2020 (8)
    • ►  December (2)
    • ▼  September (4)
      • Dependency Injection ( IoC: Inversion of control)
      • OOPs Interview Questions !!!
      • Keep update the entities if the db modified in ent...
      • AntiForgery in MVC
    • ►  May (2)
  • ►  2019 (5)
    • ►  August (1)
    • ►  April (4)
  • ►  2018 (3)
    • ►  August (3)
  • ►  2017 (1)
    • ►  May (1)
  • ►  2016 (1)
    • ►  January (1)
  • ►  2015 (3)
    • ►  December (3)
  • ►  2011 (6)
    • ►  July (1)
    • ►  June (5)
  • ►  2008 (5)
    • ►  June (5)

About Me

Ravinder Reddy Gopidi (ravi.gopidi@gmail.com)
Working as a Sr.Software Engineer.
View my complete profile