[Authorize(AuthenticationSchemes = CookieAuthenticationDefaults.AuthenticationScheme)]想請教一下如何在不加過濾器的情況下取cookie
1 回答

烙印99
TA貢獻1829條經(jīng)驗 獲得超13個贊
Startup.cs 中添加以下代碼了嗎?
services.AddAuthentication(options => { options.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme; options.DefaultChallengeScheme = CookieAuthenticationDefaults.AuthenticationScheme; }) .AddCookie();
- 1 回答
- 0 關注
- 673 瀏覽
添加回答
舉報
0/150
提交
取消