xhr.open(method, params.serverUrl + url, true);
xhr.setRequestHeader('X-Requested-With', "XMLHttpRequest");
// Next line to allow cross-domain cookies in dev mode (TODO: if...)
xhr.open(method, params.serverUrl + url, true);
xhr.setRequestHeader('X-Requested-With', "XMLHttpRequest");
// Next line to allow cross-domain cookies in dev mode (TODO: if...)