This project is read-only.

CORS not supported


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;


DanRicker wrote Jul 10, 2014 at 5: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 9:17 PM

wrote Mar 31, 2015 at 8:28 PM