Cannot call sendRedirect() after the response has been committed 无权限访问应用

This commit is contained in:
MaxKey 2022-09-29 09:33:52 +08:00
parent 16ed180073
commit 34f4cfed5f

View File

@ -121,6 +121,7 @@ public class SingleSignOnInterceptor implements AsyncHandlerInterceptor {
} }
_logger.debug("preHandle not have authority access " + app); _logger.debug("preHandle not have authority access " + app);
response.sendRedirect(request.getContextPath()+"/authz/refused"); response.sendRedirect(request.getContextPath()+"/authz/refused");
return false;
} }
return true; return true;
} }