Hi,
I have to use the scheduler rest api with laravel.
If I use
dp.init(scheduler);
dp.setTransactionMode(“REST”);
but the ajax call not sending the XSRF-TOKEN.
So I have to add XSRF-TOKEN to header…but i don’t know the solution…!!!
I try
[code]
dp.setTransactionMode({mode:“REST”,
headers:{
‘Accept’: ‘application/json, text/javascript, /; q=0.01’,
‘Content-Type’:‘application/x-www-form-urlencoded; charset=UTF-8’,
‘X-CSRF-TOKEN’: $(‘meta[name=“csrf-token”]’).attr(‘content’),
},
}, true);[/code]
but don’t work