Fixing use of Credentials on X-Domain XHR requests

When using XHR on cross domain requests, useCredentials is needed in order to forward existing cookies that the application might be using.