ソースを参照

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

MaxKey 2 年 前
コミット
34f4cfed5f

+ 1 - 0
maxkey-webs/maxkey-web-maxkey/src/main/java/org/maxkey/web/interceptor/SingleSignOnInterceptor.java

@@ -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;
     }