diff --git a/backend/src/main/java/ddangkong/controller/room/RoomMemberCookieEncryptor.java b/backend/src/main/java/ddangkong/controller/room/RoomMemberCookieEncryptor.java index 498805c8..09f46682 100644 --- a/backend/src/main/java/ddangkong/controller/room/RoomMemberCookieEncryptor.java +++ b/backend/src/main/java/ddangkong/controller/room/RoomMemberCookieEncryptor.java @@ -1,9 +1,11 @@ package ddangkong.controller.room; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.ResponseCookie; import org.springframework.stereotype.Component; +@Slf4j @Component public class RoomMemberCookieEncryptor { @@ -31,8 +33,9 @@ public ResponseCookie getEncodedCookie(Object value, String requestURL) { .build(); } - private String getSameSiteOption(String uri) { - if (uri.startsWith(LOCALHOST)) { + private String getSameSiteOption(String url) { + log.info("request url = {}", url); + if (url.startsWith(LOCALHOST)) { return NONE; } return LAX;