.net core 使用cookie進(jìn)行認(rèn)證,在Chrome、360等瀏覽器中登錄正常。在IE瀏覽器中無法登錄,抓包發(fā)現(xiàn),沒有把cookie發(fā)送給服務(wù)器。asp.net mvc中cookie在IE10上有類似問題,.net core 如何處理這個(gè)?
1 回答

RISEBY
TA貢獻(xiàn)1856條經(jīng)驗(yàn) 獲得超5個(gè)贊
登錄代碼中有沒有指定cookie的超時(shí)時(shí)間
await context.SignInAsync( CookieAuthenticationDefaults.AuthenticationScheme, claimsPrincipal, new AuthenticationProperties { IsPersistent = isPersistent, ExpiresUtc = DateTimeOffset.Now.Add(_cookieAuthOptions.ExpireTimeSpan) });
- 1 回答
- 0 關(guān)注
- 902 瀏覽
添加回答
舉報(bào)
0/150
提交
取消