Skip to content

Commit

Permalink
#35 [Update] 두번째 시도
Browse files Browse the repository at this point in the history
서브 도메인 설정해보기
domain 옵션 추가
  • Loading branch information
Anna-Jin committed Jul 19, 2022
1 parent c45c295 commit 249a560
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/mpnp/baechelin/util/CookieUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public static Optional<Cookie> getCookie(HttpServletRequest request, String name
// 쿠키 생성
public static void addCookie(HttpServletResponse response, String name, String value, int maxAge) {
ResponseCookie cookie = ResponseCookie.from(name, value)
.domain(".bae-chelin.com")
.path("/")
.httpOnly(true)
.maxAge(maxAge)
Expand Down

0 comments on commit 249a560

Please sign in to comment.