Better late than never ... Here's a workaround; add this function at the beginning of the dojo.addOnLoad () method.
dojo.xhrGet = function(args){// Workaround for Dojo lack of support for custom headers args.headers = {userId:'xyz', requestedBy:'abc', requestedFrom:'123'}; return dojo.xhr("GET", args); };
source share