asp.net mvc 3 - anti-forgery token issue in mvc -
i’m working on ace rules compliance, wherein have apply anti-forgery token prevent cross-site request forgery (csrf). the following changes made:1) in controller: decorated action method token shown 
. 2) in view, added token in form along action name , controller name. 
3) made following changes in the index.js file: observation: on debugging found call reqman.exec() never succeeds.in reqman.js, ajax() call made, fails. 
4) on click of ok, when the reqman.exec() call made, navigates error page following message: 5) i tried changing the objdata : $(‘form’).serialize(), doesn’t work , gives following error.


are sure isn't typo. see in example have written __requestverificationt*o*ken instead of __requestverificationtoken when creating updatemodelin javascript.
Comments
Post a Comment