Skip to content
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

fix for cross site authentication #41

Merged
merged 1 commit into from
Dec 14, 2011
Merged

Conversation

chengfred
Copy link
Contributor

When using xhr transports, "cookie" may not already be in headers for preflight request.
If request needs cookies to be set/sent, that check will result in 'Access-Control-Allow-Credentials' not being set.

Also, at least in Chrome/Firefox, setting header to value of True will result in it not being detected properly and you'll get a Credentials flag is true, but Access-Control-Allow-Credentials is not "true" error. 'Access-Control-Allow-Credentials' needs to be set to 'true'

reference socketio/socket.io-client#335

mrjoes added a commit that referenced this pull request Dec 14, 2011
fix for cross site authentication
@mrjoes mrjoes merged commit cae7263 into mrjoes:master Dec 14, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants