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 enter image description here

. 2)      in view, added token in form along action name , controller name.   enter image description here

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. enter image description here

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.

enter image description here

enter image description here

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


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -