Webix Uploader: How to add session CSRF token on the Uploader Send Post Method as Ajar Header?

I recently purchased Webix Usermanager and I am having problem changing or uploading users photo because the uploader send post method is being prevented by the Laravel framework. How would I add session CSRF token to the uploader send post method as ajax request header.

Here is an example of uploader send method.
$$(“upl1”).send(function(response){
if(response)
webix.message(response.status);
});
//response contains server-side response

Hello @joobele ,
It is possible to change the headers using the global onBeforeAjax event (fires for all requests), which handler receives (and allows to modify) headers as one of the arguments:

webix.attachEvent("onBeforeAjax", function(mode, url, details, xhr, headers, formData){
if(mode == "POST")
headers['X-CSRF-Token'] = <_Token>;
});

Please, check the related docs chapter: https://docs.webix.com/desktop__server_customload.html#modifyingbackgroundajaxrequests