我设置了以下 cookie。 token
是生成的 jwt 令牌。
HttpContext.Response.Cookies.Append("authorization",
tokenhandler.WriteToken(token), new CookieOptions()
{
Path = "/",
HttpOnly = true,
Secure = true,
SameSite = SameSiteMode.Lax,
Expires = DateTime.UtcNow.AddDays(1)
}) ;
当我在设置 cookie 后拨打电话时。我仍然得到 401 未经授权。 cookie 不是总是自动发送到标题中吗?