Set the crossdomain flag for cors ajax request #2512

halter73 opened this Issue Sep 5, 2013 · 1 comment


None yet
3 participants

halter73 commented Sep 5, 2013

Issue: credential cookies are not automatically enabled for cors ajax request

Reproduce: from an authenticated page, use signalrjs to connect to signalr server(sub domain), which's already configured to know to client's credential cookies

Expect: client is authenticated in signalr server

Actual: client is unauthenticated. Because no cookies are attached in his cors requests.

Solution: add this option for $.ajax may solve the issue:

xhrFields: {withCredentials: true}


NTaylorMullen added a commit that referenced this issue Sep 18, 2013

Made logging more consistent throughout the code base.
- Added periods to the end of every log line.
- Removed "SignalR:" from beginning of logged lines so it wasn't logged twice.
- Re-worded some language
- Added Long poll complete log


gustavo-armenta commented Sep 25, 2013

verified in code all ajax requests are made with "withCredentials: connection.withCredentials"

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