Using XMLHttpRequest I would like to send the Cookie to the same domain via ChromeCast custom receiver. I'm using the following code, but when I look at the headers in the Request, the Cookie header does not appear.
Is there a way to send a request using cookies with XMLHttpRequest via ChromeCast?
$.cookie("a", "test",{expires: 7, path: "/"});
var r = new XMLHttpRequest();
r.open('GET', '/api/checksession', true);
r.withCredentials = true;
r.send();
Thanks.