}
}
else {
- console.log("Backend issue fetching OAuth state.");
+ console.log("Backend error " + aStatus + " fetching OAuth state: " + aResult["message"]);
}
if (aCallback) { aCallback(); }
},
}
};
XHR.open(aMethod, gBackendURL + aEndpoint, true);
+ XHR.withCredentials = "true";
//XHR.setRequestHeader("Accept", "application/json");
try {
XHR.send(aSendData); // Send actual form data.