diff --git a/src/main/java/com/jmal/clouddisk/interceptor/AuthInterceptor.java b/src/main/java/com/jmal/clouddisk/interceptor/AuthInterceptor.java index 06469487..5c83b409 100644 --- a/src/main/java/com/jmal/clouddisk/interceptor/AuthInterceptor.java +++ b/src/main/java/com/jmal/clouddisk/interceptor/AuthInterceptor.java @@ -198,6 +198,7 @@ private static String renewJmalToken(HttpServletRequest request, HttpServletResp Cookie cookie = new Cookie(JMAL_TOKEN, jmalToken); cookie.setPath("/"); response.addCookie(cookie); + response.addHeader(JMAL_TOKEN, jmalToken); setRefreshCookie(response, hashPassword, username, rememberMe); } return username;