November 2017
Intermediate to advanced
542 pages
14h 24m
English
You can then include the token within all of your Ajax requests. If you were using jQuery, this could be done with the following code snippet:
$(function () {var token = $("meta[name='_csrf']").attr("content");var header = $("meta[name='_csrf_header']").attr("content");$(document).ajaxSend(function(e, xhr, options) { xhr.setRequestHeader(header, token);});});
Read now
Unlock full access