Another option, extend the rest adapter and override the ajax hook to build out the jQuery.ajax.
hash.beforeSend = function(xhr) { xhr.setRequestHeader('X-CSRF-Token', token); }
Another option, extend the rest adapter and override the ajax hook to build out the jQuery.ajax.
hash.beforeSend = function(xhr) { xhr.setRequestHeader('X-CSRF-Token', token); }