Skip to content

Commit 4f6927e

Browse files
authored
merge: SameSite 쿠키를 Lax로 설정
2 parents 58e1562 + 98199b9 commit 4f6927e

File tree

1 file changed

+2
-1
lines changed
  • src/main/kotlin/com/team/incube/gsmc/v3/global/common/cookie

1 file changed

+2
-1
lines changed

src/main/kotlin/com/team/incube/gsmc/v3/global/common/cookie/CookieUtil.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.team.incube.gsmc.v3.global.common.cookie
22

33
import org.springframework.beans.factory.annotation.Value
4+
import org.springframework.boot.web.server.Cookie
45
import org.springframework.core.env.Environment
56
import org.springframework.http.ResponseCookie
67
import org.springframework.stereotype.Component
@@ -31,7 +32,7 @@ class CookieUtil(
3132
.from(name, value)
3233
.httpOnly(true)
3334
.secure(isProduction)
34-
.sameSite("Strict")
35+
.sameSite(Cookie.SameSite.LAX.attributeValue())
3536
.path("/")
3637
.maxAge(maxAge)
3738
.apply {

0 commit comments

Comments
 (0)