[守卫中canActivate返回false时,code总是500而不是403,且无法改变] #3920
Unanswered
ruiruiStudy
asked this question in
Q&A
Replies: 1 comment
-
检查自定义全局过滤器。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the problem(描述问题)
文档描述:默认情况下,守卫的 canActivate 方法当返回 false 时,框架会抛出 403 错误(ForbiddenError)。
实际上,框架抛出500错误,且无法改变值
Midway Versions(Midway 版本)
1.3.8
Beta Was this translation helpful? Give feedback.
All reactions