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

Support withCredentials for Cross-Origin Resource Sharing #313

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
4 participants
@bhoule

bhoule commented Nov 17, 2011

Without this flag, cookies are not included on CORS requests.

@elsigh

This comment has been minimized.

Show comment
Hide comment
@elsigh

elsigh Nov 18, 2011

Contributor

You can do this with:

$.ajaxSettings.beforeSend = function(xhr) {
  // see https://github.com/madrobby/zepto/issues/274
  xhr.withCredentials = true;  // TODO(elsigh): Do this in zepto w/ xhrFields.
};

I opened the same bug but closed it because no one seemed to want it. I also believe there's another way coming in newer versions that will be nice(r).

Contributor

elsigh commented Nov 18, 2011

You can do this with:

$.ajaxSettings.beforeSend = function(xhr) {
  // see https://github.com/madrobby/zepto/issues/274
  xhr.withCredentials = true;  // TODO(elsigh): Do this in zepto w/ xhrFields.
};

I opened the same bug but closed it because no one seemed to want it. I also believe there's another way coming in newer versions that will be nice(r).

@bhoule bhoule closed this Jan 20, 2012

@kud

This comment has been minimized.

Show comment
Hide comment
@kud

kud Feb 1, 2013

Oh come on. I spent like 2 hours to understand what was happenning. Please, support jQuery style on Zepto; thank you.

kud commented Feb 1, 2013

Oh come on. I spent like 2 hours to understand what was happenning. Please, support jQuery style on Zepto; thank you.

@SFantasy

This comment has been minimized.

Show comment
Hide comment
@SFantasy

SFantasy Feb 24, 2014

Hi. I also have question about this feature. Is there any method to solve this Issue?

SFantasy commented Feb 24, 2014

Hi. I also have question about this feature. Is there any method to solve this Issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment