chore: Set secure and same-site attributes for session cookie

This commit is contained in:
Frederico Santos 2024-07-21 14:58:53 +01:00
parent b184e754ce
commit 97af57a41c

View File

@ -626,9 +626,12 @@ func handleProviderCallback(w http.ResponseWriter, r *http.Request) {
}
http.SetCookie(w, &http.Cookie{
Name: "pokerogue_sessionId",
Value: sessionToken,
Path: "/",
Name: "pokerogue_sessionId",
Value: sessionToken,
Path: "/",
Secure: true,
SameSite: http.SameSiteStrictMode,
Domain: "beta.pokerogue.net",
})
}