Signalr Connection Request Does Not Send Cookies
I am building a web application using ASP.NET Web API and SignalR. I have a pretty good understanding of HTTP but this problem is beyond me. Currently, I am setting a cookie on all
Solution 1:
Turns out I don't understand cookies well enough. Browsers seem to have trouble handling TLDs like localhost
as the cookie domain. Therefore, I left the domain undefined, so that the cookie will default to the domain of the request.
However, the path parameter needed to be set to /
in order to make sure the cookie is sent in all requests.
Once I made these changes, everything worked as expected, and my cookies were plainly visible in SignalR.
Post a Comment for "Signalr Connection Request Does Not Send Cookies"