I only use JavaScript.
And i know jQuery will set's the CSRF by,
$(function() {
$.ajaxSetup({
headers: {
'X-CSRF-Token': $('meta[name="_token"]').attr('content')
}
});
});
But how could i use "CSRF-Token" in JavaScript ?
Is there any possibilities for common setup for all Ajax Call ?