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

<script>
var dataSource = new kendo.data.DataSource({
  transport: {
    read: {
      url: "https://demos.telerik.com/kendo-ui/service/twitter/search",
      dataType: "jsonp",
      data: function() {
        return kendo.antiForgeryTokens();
      }
    }
  }
});

dataSource.fetch();
</script>

ReturnsObject An object that contains common CSRF tokens found on the page

In this article
Not finding the help you need?