jQuery(document).ready(function($) {
    var csrfTokenMetaTagName = 'csrf_token';
    var csrfSelector = $('[name="' + csrfTokenMetaTagName + '"]');
    $.ajaxSetup({
        type: "POST",
        headers: {
            'X-XSRF-TOKEN': csrfSelector.attr('content')
        },
        data: {
            '_token': csrfSelector.attr('content')
        }
    });

    
});