Skip to content

Commit

Permalink
hotfix: 서브 도메인 설정 오류 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
parksey committed Dec 3, 2023
1 parent afab121 commit 63c7b2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/moabam/global/common/util/CookieUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static Cookie tokenCookie(String name, String value, long expireTime, Str
Cookie cookie = new Cookie(name, value);
cookie.setSecure(true);
cookie.setHttpOnly(true);
cookie.setDomain("moabam.com");
cookie.setDomain(".moabam.com");
cookie.setPath("/");
cookie.setMaxAge((int)expireTime);
cookie.setAttribute("SameSite", "Lax");
Expand All @@ -23,7 +23,7 @@ public static Cookie typeCookie(String value, long expireTime, String domain) {
Cookie cookie = new Cookie("token_type", value);
cookie.setSecure(true);
cookie.setHttpOnly(true);
cookie.setDomain("moabam.com");
cookie.setDomain(".moabam.com");
cookie.setPath("/");
cookie.setMaxAge((int)expireTime);
cookie.setAttribute("SameSite", "Lax");
Expand Down

0 comments on commit 63c7b2d

Please sign in to comment.