mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 17:37:32 +00:00
Merge pull request #463 from zitadel/qa
fix: enfore secure cookie for production environments
This commit is contained in:
@@ -31,7 +31,8 @@ async function setSessionHttpOnlyCookie<T>(
|
||||
value: JSON.stringify(sessions),
|
||||
httpOnly: true,
|
||||
path: "/",
|
||||
sameSite,
|
||||
sameSite: process.env.NODE_ENV === "production" ? sameSite : "lax",
|
||||
secure: process.env.NODE_ENV === "production",
|
||||
});
|
||||
}
|
||||
|
||||
|
@@ -12,7 +12,8 @@
|
||||
"ZITADEL_API_URL",
|
||||
"ZITADEL_SERVICE_USER_TOKEN",
|
||||
"NEXT_PUBLIC_BASE_PATH",
|
||||
"CUSTOM_REQUEST_HEADERS"
|
||||
"CUSTOM_REQUEST_HEADERS",
|
||||
"NODE_ENV"
|
||||
],
|
||||
"tasks": {
|
||||
"generate": {
|
||||
|
Reference in New Issue
Block a user