From e3e98eb56432123f2e05f43ffc3f1d5fc36fe5cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20K=C3=BC=C3=A7=C3=BCk?= <44123646+mustafakucuk-dev@users.noreply.github.com> Date: Tue, 26 Dec 2023 03:45:22 +0300 Subject: [PATCH] login header secure flag added --- .../com/gamelounge/backend/controller/AccessController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/backend/src/main/kotlin/com/gamelounge/backend/controller/AccessController.kt b/app/backend/src/main/kotlin/com/gamelounge/backend/controller/AccessController.kt index da956257..313446fe 100644 --- a/app/backend/src/main/kotlin/com/gamelounge/backend/controller/AccessController.kt +++ b/app/backend/src/main/kotlin/com/gamelounge/backend/controller/AccessController.kt @@ -41,7 +41,7 @@ class AccessController( // response.addCookie(cookie) // Manually construct the Set-Cookie header value - val cookieValue = "SESSIONID=$sessionId; Path=/; SameSite=None" + val cookieValue = "SESSIONID=$sessionId; Path=/; SameSite=None; Secure" // Add the Set-Cookie header to the response response.addHeader("Set-Cookie", cookieValue)