Skip to content

Commit

Permalink
fix: SameSite None으로 변경 - #24
Browse files Browse the repository at this point in the history
  • Loading branch information
Dh3356 committed Feb 27, 2024
1 parent 029bf5e commit 13b03b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.mjulikelion.baker.util.security.JwtEncoder;
import org.mjulikelion.baker.util.security.JwtTokenProvider;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.web.servlet.server.Session.Cookie;
import org.springframework.boot.web.server.Cookie.SameSite;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseCookie;
import org.springframework.http.ResponseEntity;
Expand Down Expand Up @@ -49,7 +49,7 @@ public ResponseEntity<ResponseDto<Void>> login(AuthLoginRequestDto authLoginRequ

ResponseCookie cookie = ResponseCookie.from(ACCESS_TOKEN, JwtEncoder.encodeJwtBearerToken(jwtToken))
.secure(true)
.sameSite(String.valueOf(Cookie.SameSite.LAX))
.sameSite(String.valueOf(SameSite.NONE))
.maxAge(Duration.ofMinutes(cookieMaxAge))
.httpOnly(true)
.path(ROOT_PATH)
Expand Down

0 comments on commit 13b03b3

Please sign in to comment.