Genreating serverSide response with custom Ajax Header
Genreating serverSide response with custom Ajax Header

Is there a way the fetch Data from Server with a custom Header?
I have the following code which sends the request to the proper function but does not generates any response
oTable = $('#saleReport').dataTable({
"ajax": {
//"url": "/reports",
"method": "post",
"headers": { 'X-OCTOBER-REQUEST-HANDLER': 'onReports' }
}
});
This discussion has been closed.