Skip to content

Commit

Permalink
#35 [Done] 쿠키 문제 최종 완료. 레거시 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna-Jin committed Jul 20, 2022
1 parent 0c778b1 commit 7a7b156
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/main/java/com/mpnp/baechelin/util/CookieUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ public static void addCookie(HttpServletResponse response, String name, String v
.build();

response.addHeader("Set-Cookie", cookie.toString());
// Cookie cookie = new Cookie(name, value);
//
// cookie.setPath("/");
// cookie.setHttpOnly(true); // XSS 공격을 막기 위한 설정
// cookie.setMaxAge(maxAge);
// cookie.setDomain(".bae-chelin.com");
//
// response.addCookie(cookie);
}

// 쿠키 삭제
Expand All @@ -60,10 +52,6 @@ public static void deleteCookie(HttpServletRequest request, HttpServletResponse
.maxAge(0)
.build();

// cookie.setValue("");
// cookie.setPath("/");
// cookie.setMaxAge(0);

response.addHeader("Set-Cookie", deleteCookie.toString());
}
}
Expand Down

0 comments on commit 7a7b156

Please sign in to comment.