Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Ajax cross-domain requests does not set 'with credentials' #95

Closed
seanislegend opened this issue Sep 17, 2015 · 2 comments
Closed

Ajax cross-domain requests does not set 'with credentials' #95

seanislegend opened this issue Sep 17, 2015 · 2 comments

Comments

@seanislegend
Copy link

Creating an Ajax request with the option crossDomain set to true does not set withCredentials.
Furthermore, there is no option to manually change this option.

Is this expected? I have overcome this issue by updating the source and adding a new line in getCORSRequest():

if ('withCredentials' in xhr) {
  return xhr;
}

is now:

if ('withCredentials' in xhr) {
  xhr.withCredentials = true;
  return xhr;
}

Any help/advice would be appreciated.

mattpodwysocki added a commit that referenced this issue Oct 13, 2015
@mattpodwysocki
Copy link
Member

@seanislegend yes, that is a bug on our part and is fixed as per 7.0.3

@jaredatron
Copy link

I'm seeing the same bug in 7.0.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants