diff --git a/apps/scandic-web/middlewares/webView.ts b/apps/scandic-web/middlewares/webView.ts index 2b4ebfb2f..f67d7e3b5 100644 --- a/apps/scandic-web/middlewares/webView.ts +++ b/apps/scandic-web/middlewares/webView.ts @@ -156,8 +156,9 @@ async function handleWebviewRewrite({ res.cookies.set("webviewToken", decryptedData, { httpOnly: true, secure: true, - sameSite: "strict", + sameSite: "lax", path: "/", + maxAge: 60 * 30, // 30 minutes }) } return res @@ -185,8 +186,9 @@ async function handleWebviewRewrite({ res.cookies.set("webviewToken", decryptedData, { httpOnly: true, secure: true, - sameSite: "strict", + sameSite: "lax", path: "/", + maxAge: 60 * 30, // 30 minutes }) } return res @@ -203,8 +205,9 @@ async function handleWebviewRewrite({ res.cookies.set("webviewToken", decryptedData, { httpOnly: true, secure: true, - sameSite: "strict", + sameSite: "lax", path: "/", + maxAge: 60 * 30, // 30 minutes }) } return res