Created
May 2, 2015 14:35
-
-
Save johnmmoss/be529d25125b4bd32d5c to your computer and use it in GitHub Desktop.
CSRF Controller Attribute
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HttpPost] | |
[ValidateAntiForgeryToken] | |
public ActionResult Index(FeedbackModel model) | |
{ | |
// Controller code | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment