reqWithCredentials field is present in the Request type, but it is not used for actual XHR requests. This way one can not make CORS requests with credentials, which results is a loss of interesting functionality for rich web applications which work with APIs from other origins.
This pull request makes xhr function respect reqWithCredentials parameter.
And also provides a little bit less mysterious error message on XHR errors ("some error" is very abstract :-)
reqWithCredentials
field is present in theRequest
type, but it is not used for actual XHR requests. This way one can not make CORS requests with credentials, which results is a loss of interesting functionality for rich web applications which work with APIs from other origins.This pull request makes
xhr
function respectreqWithCredentials
parameter.And also provides a little bit less mysterious error message on XHR errors ("some error" is very abstract :-)