Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Set the crossdomain flag for cors ajax request #2512

Closed
halter73 opened this Issue · 1 comment

3 participants

Stephen Halter Gustavo Armenta N. Taylor Mullen
Stephen Halter
Collaborator

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:

$.ajax({
xhrFields: {withCredentials: true}
})

#1735

N. Taylor Mullen NTaylorMullen referenced this issue from a commit
N. Taylor Mullen NTaylorMullen 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

#2512
dfd71d9
Gustavo Armenta

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
Something went wrong with that request. Please try again.