Hi all,
I'm receiving this error trying to use via jquery the cookie with the previously opened session:
jQuery.ajax({
type: "GET",
url: "http://xxxx.xxxx.xxxx.xxxx/rest/api/2/issue/myissue",
contentType: "application/json",
beforeSend: function (request) {
request.setRequestHeader("cookie", document.cookie);
},
error: function (request, status, error) {
console.log('Error');
},
success: function (data) {
console.log('Success');
}
});
Does anyone know which is the proper way to use this cookie for ajax calls?
After this error I also receive "The 'Access-Control-Allow-Origin' header contains multiple values".
Thanks in advance.