How to use many @Html.AntiForgeryToken() on one page?
When I put it, it does not work on the remote host, only locally!
I tried using different lines for the fake token @Html.AntiForgeryToken("logoff_forgery") , but when I add [ValidateAntiForgeryToken(Salt = "logoff_forgery")] I get the following error
'System.Web.Mvc.ValidateAntiForgeryTokenAttribute.Salt' 'The 'Salt' property is deprecated. To specify custom data to be embedded within the token, use the static AntiForgeryConfig.AdditionalDataProvider property.' D:\projects\codesan\app\CodeSan\CodeSan\Controllers\AccountController.cs 289 35 CodeSan
Does anyone know how to use static AntiForgeryConfig.AdditionalDataProvider ? If so, share it with me.
source share