Skip to content

Commit

Permalink
cookie 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna-Jin committed Jul 19, 2022
1 parent 65ee03c commit 951149b
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 951149b

Please sign in to comment.