Skip to content

Commit

Permalink
fix : 쿠키 secure 무효화
Browse files Browse the repository at this point in the history
  • Loading branch information
RTUnu12 committed Feb 8, 2025
1 parent 78a1cf0 commit b5594fc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.http.ResponseCookie;


public class CookieUtils {
private CookieUtils() {
throw new IllegalStateException("Utility class");
}

public static ResponseCookie createReissueCookie(String name, String value, int maxAge) {
return ResponseCookie.from(name, value)
.secure(true)
.secure(false) // 현재 프론트가 http 개발 환경이기에 false 처리
.sameSite("None")
.httpOnly(true)
.path("/")
Expand Down

0 comments on commit b5594fc

Please sign in to comment.