【发布时间】:2017-11-11 00:04:23
【问题描述】:
我添加了 cookie 密钥,但新的 cookie 密钥没有发送到服务器。 当我控制台 document.cookie 时,我看到了新值。但在请求中看不到,
客户端代码(角度):
$cookies.InternalToken = credentials.token;
_connectionHub
.start();
集线器代码(.net c#):
var connection = new HubConnection(url);
connection.CookieContainer = new System.Net.CookieContainer();
connection.CookieContainer.Add(new System.Net.Cookie() { Name = "InternalToken", Value = "" });
【问题讨论】:
标签: c# web signalr cross-domain