diff --git a/src/main/java/com/winner_cat/global/oauth2/handler/CustomSuccessHandler.java b/src/main/java/com/winner_cat/global/oauth2/handler/CustomSuccessHandler.java index 0f8e5dd..270ccbb 100644 --- a/src/main/java/com/winner_cat/global/oauth2/handler/CustomSuccessHandler.java +++ b/src/main/java/com/winner_cat/global/oauth2/handler/CustomSuccessHandler.java @@ -66,6 +66,7 @@ private Cookie createCookie(String key, String value) { cookie.setHttpOnly(true); // 자바스크립트에서 쿠키에 접근 가능 // 프론트에서 쿠키 접근을 위해 추가 cookie.setAttribute("SameSite","None"); + cookie.setDomain("https://bugnyang2.netlify.app/"); return cookie; }