antiForgeryTokens
Returns an object that contains common CSRF tokens found on the page.
These include tokens used by ASP.NET, Ruby on Rails and others.
Example - Send CSRF tokens in DataSource read request
<input type="hidden" name="__RequestVerificationToken" value="token" />
<script>
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "https://demos.telerik.com/kendo-ui/service/products",
dataType: "jsonp",
data: function() {
return kendo.antiForgeryTokens();
}
}
}
});
dataSource.fetch();
// check the request in the NetworkTab
</script>