Skip to content

Commit

Permalink
feature: 쿠키 생성 시 도메인 ".naoman.site"로 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
bflykky committed Aug 18, 2024
1 parent 688c408 commit ae748eb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
import java.util.Base64;

public class CookieUtils {
private static final String COOKIE_DOMAIN = ".naoman.site";
public static void addCookie(HttpServletResponse response, String name, String value, int maxAge) {
ResponseCookie cookie = ResponseCookie.from(name, value)
.path("/")
.domain(COOKIE_DOMAIN)
.maxAge(maxAge)
.httpOnly(false)
.secure(true)
Expand Down

0 comments on commit ae748eb

Please sign in to comment.