DEV Community

hdemiray
hdemiray

Posted on • Edited on

C# Anti Forgery Token

CSRF saldırıları olarak geçen ;
arama çubuğunu post olarak veri yollamak veri ele geçirmek için kullanırlar.

Direkt oradan veri yollayamaması için controllerdan http post olan kısımı

[ValidateAntiForgeryToken] olarak başlatıyoruz ve pos formunun içerisine

@html.AntiforgeryToken()

metodunu koyuyoruz.

Top comments (0)

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay