We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SameSite
Lax
2 parents 58e1562 + 98199b9 commit 4f6927eCopy full SHA for 4f6927e
src/main/kotlin/com/team/incube/gsmc/v3/global/common/cookie/CookieUtil.kt
@@ -1,6 +1,7 @@
1
package com.team.incube.gsmc.v3.global.common.cookie
2
3
import org.springframework.beans.factory.annotation.Value
4
+import org.springframework.boot.web.server.Cookie
5
import org.springframework.core.env.Environment
6
import org.springframework.http.ResponseCookie
7
import org.springframework.stereotype.Component
@@ -31,7 +32,7 @@ class CookieUtil(
31
32
.from(name, value)
33
.httpOnly(true)
34
.secure(isProduction)
- .sameSite("Strict")
35
+ .sameSite(Cookie.SameSite.LAX.attributeValue())
36
.path("/")
37
.maxAge(maxAge)
38
.apply {
0 commit comments