ترکیب HttpPost و ValidateAntiForgeryToken
نویسنده: مهدی ملائیان
تاریخ: ۱۳۹۵/۰۶/۲۰ ۱۲:۲۶
آدرس: www.dntips.ir
I’ve been kicking around the idea of combining [HttpPost] and [ValidateAntiForgeryToken] in an application using authentication cookies. Both attributes typically appear together to prevent cross-site request forgeries in MVC applications using cookie based authentication. The result looks like the following.