Modification of HTTP Header in AJAX?

Hello All,

I use dhtmlxscheduler for a calendar service.
I have to insert a new field to the HTTP header of the AJAX request toward the server with session id for authentication purposes.

My question is:
How to modify HTTP Header before sending the AJAX request?

Thank you,

Zoltán

The only way is code modification.

dhtmlxcommon.js

You can locate the next line
this.xmlDoc.setRequestHeader(“X-Requested-With”,“XMLHttpRequest”);

and add any custom headers after it