Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Michael Gordon on Jun 01, 2008 21:06
open dhtmlx forum
HTTP Authentication

Hey,
I was just wondering if there was a way to specify basic authentication parameters in the http headers used in loadXML or setXMLAutoLoading.

Thanks,
Michael Gordon
Answer posted by Support on Jun 02, 2008 02:57
There is no any built in support for such solution, but you can modify code of dhtmlxcommon.js

dhtmlxcommon.js , line 107
dtmlXMLLoaderObject.prototype.loadXML
...
this.xmlDoc.open(postMode?"POST":"GET",filePath,this.async);
this.xmlDoc.setRequestHeader("Name", "Value");   // any necessary headers can be described here