This project is read-only.

Change the field name of AntiForgeryToken

Jan 26, 2014 at 3:07 PM
I want to change the field names in the HTML that is generated AntiForgeryToken.
@* Generated: <input type="hidden" name="__RequestVerificationToken" value="... /> *@
But, cookies names are mutable in AntiForgeryConfig.CookieName, than good even if there is a set?
AntiForgeryConfig.CookieName = "token"; // Can be changed!
I think it to output the field name is the same as the cookie name is also that it is good.