Cannot call sendRedirect() after the response has been committed 无权限访问应用
This commit is contained in:
@@ -121,6 +121,7 @@ public class SingleSignOnInterceptor implements AsyncHandlerInterceptor {
|
||||
}
|
||||
_logger.debug("preHandle not have authority access " + app);
|
||||
response.sendRedirect(request.getContextPath()+"/authz/refused");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user