asp.net mvc - The required anti-forgery cookie "__RequestVerificationToken" is not present. -
the required anti-forgery cookie "__requestverificationtoken" not present.
i have added in cshtml , in controller also
using (html.beginform()) { @html.antiforgerytoken() //some code } [httpget] [validateantiforgerytoken] public actionresult index() { using (var db = new sampleentities()) { homecoming view(db.rfps.tolist()); } }
the issue because set validateantiforgerytoken
attribute action wich allows requests. don't need utilize attribute actions. here more info
asp.net-mvc
No comments:
Post a Comment