This is a migrated thread and some comments may be shown as answers.

Unable to get ValidateAntiForgeryToken working with HTML grid implementation

1 Answer 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 19 Apr 2013, 01:14 AM
Run attach solution, it generates an error.
If you remove the ValidateAntiForgeryToken from the TenantController.TenantList method it is successful.

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 22 Apr 2013, 12:13 PM
Hello Robert,

The issue comes because using contentType application/json. Similar question is covered here:

http://stackoverflow.com/questions/2906754/how-can-i-supply-an-antiforgerytoken-when-posting-json-data-using-ajax


Kind Regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or