misc: added samesite lax

This commit is contained in:
Sheen Capadngan
2024-06-20 03:19:10 +08:00
parent d64e2fa243
commit f0a70d8769
+2 -1
View File
@@ -39,7 +39,8 @@ export const registerOidcRouter = async (server: FastifyZodProvider) => {
secret: appCfg.COOKIE_SECRET_SIGN_KEY, secret: appCfg.COOKIE_SECRET_SIGN_KEY,
store: redisStore, store: redisStore,
cookie: { cookie: {
secure: appCfg.isProductionMode secure: appCfg.HTTPS_ENABLED,
sameSite: "lax"
} }
}); });