Currently we cannot use the last 3 versions of ArcGIS for Javascript because authentication cookies are not sent with CORS requests.I have a couple of ideas to request as a solution:1) Give us a global configuration option to enable/disable CORS
esri.config.defaults.io.enableCors = true | false;
2) Allow us to include credentials in request via esri.setRequestPreCallback
esri.setRequestPreCallback(function (ioArgs) {
ioArgs.withCredentials = (shouldUseCredentials(ioArgs.url) === true);
return ioArgs;
});
If something like this already present and I missed it, my mistake. Please lead me in the right direction.