Set Headers in Webix Send

Hello,
It's possible to add headers in webix send features? i want to add "csrf token" in my "webix send"

I have done to add on

webix.attachEvent("onBeforeAjax", function(mode, url, data, request, headers, files, promise){
headers["X-CSRF-TOKEN"]= $('meta[name="csrf_token"]').attr('content');
});

It's work perfectly with ajax post request, but not work in webix send

Thank You

Tagged:
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!