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

[Solved] AntiForgeryToken w/ Server Side Binding

1 Answer 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Philip Senechal
Top achievements
Rank 1
Philip Senechal asked on 22 Aug 2011, 09:13 PM
The CMS I'm working in requires that an AntiForgeryToken be sent during any posts to the server. I am able to do this with the grids I have that are Ajax bound using ClientEvents. The same method does not appear to work when the grid is Server bound though. Can you show me how to attach the AntiForgeryToken to posts for a Server bound grid? Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 23 Aug 2011, 05:44 AM
Hi Philip Senechal,

 A server bound grid does HTTP GET requests, not POST. Sending the antiforgery token would be the same as adding it to a hyperlink.

Regards,
Atanas Korchev
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Grid
Asked by
Philip Senechal
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or