Skip to content

Commit

Permalink
fix: 로컬 환경에서의 코드 실수로 push된 부분 롤백
Browse files Browse the repository at this point in the history
  • Loading branch information
bflykky committed Aug 23, 2024
1 parent 6eabd87 commit 09569a8
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@
import java.util.Base64;

public class CookieUtils {
// private static final String COOKIE_DOMAIN = ".naoman.site";
private static final String COOKIE_DOMAIN = "localhost";
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)
// .sameSite("None")
.secure(true)
.sameSite("None")
.build();

response.addHeader(HttpHeaders.SET_COOKIE, cookie.toString());
Expand Down

0 comments on commit 09569a8

Please sign in to comment.