I try to run this code an a web browser to access the taleo API. I have already gotten the authToken by logging in. I now need to use it to make subsequent calls. However I get this error: Request header field authToken is not allowed by Access-Control-Allow-Headers. Can someone tell me the best way to actually do this?
xhr = $.ajax({
type: "POST",
url: logout,
dataType: 'json',
async: false ,
crossDomain : true,
headers: {'authToken': Token },
success: function (data) {
console.log(data);
console.log(data.status.success)
}
});