Ajax dataType

Hi, this is my request
webix.ajax().post("#{get_monthly_building_reports_path(@building)}", data, callback);
could you please tell me how to set dataType: ‘script’ for this request?

With Webix you can set the “Accept” header for the request to inform the server about the desirable data type:

webix.ajax().headers({
   "Accept": "..." 
}).post(url, data, callback);