3
Vote

CORS not supported

description

Currently, we datajs used in CORS, it cannot send cookie info to server.

I think below code need to be added when init xhr
if("OPTIONS" != request.method){
    xhr.withCredentials = true;
}

comments

DanRicker wrote Jul 10, 2014 at 4:17 PM

I would prefer that a new createXmlHttpRequest property be exposed that can be used as an alternative the internal createXmlHttpRequest() function. This would allow the xhr.withCredentials property to be set as above, and allow for any other current or future changes to the xhr object in the users override.

wrote Oct 16, 2014 at 8:17 PM

wrote Mar 31, 2015 at 7:28 PM