New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RestAdapter does not allow to set the XHR withCredentials flag #4563
Comments
@saerdnaer - I had the same issue. After looking at the source, I was able to override the _requestToJQueryAjaxHash(request) {
let hash = this._super(request);
hash.xhrFields = hash.xhrFields || {};
hash.xhrFields.withCredentials = true;
return hash;
} |
Until emberjs/rfcs#171 is a reality I think |
We removed the |
The current REST XHR implementation in
data/addon/adapters/rest.js
Lines 1332 to 1357 in 16cf35d
The old way was to override the ajax method, and set
hash.xhrFields = { withCredentials: true };
(compare http://stackoverflow.com/a/32864639 ) but overriding the ajax method is now deprecated.Side node: Acually, in some browsers which do not correctly implement the specification (e.g. Chrome 53), APIs requiring client certs still work – however this is a bug.
The text was updated successfully, but these errors were encountered: