設(shè)置好[Authorize]后,并未跳轉(zhuǎn)到登錄頁
設(shè)置好[Authorize]后,在未登錄狀態(tài),點擊意見反饋未跳轉(zhuǎn)到登錄頁,而是跳轉(zhuǎn)到Feedback,跳轉(zhuǎn)鏈接為https://localhost:5001/Feedback
設(shè)置好[Authorize]后,在未登錄狀態(tài),點擊意見反饋未跳轉(zhuǎn)到登錄頁,而是跳轉(zhuǎn)到Feedback,跳轉(zhuǎn)鏈接為https://localhost:5001/Feedback
2020-03-01
舉報
2023-03-13
把UseAuthorization()寫在UseRouting()下面,才能重定向
2020-09-30
如果是.NetCore3.0以上版本,你需要在Startup.cs中啟用授權(quán)的中間件,在添加路由的中間件和使用MVC的中間件之間添加
2020-05-07
https://docs.microsoft.com/zh-cn/aspnet/core/signalr/authn-and-authz?view=aspnetcore-3.1