fix: set cookie domain to .pingql.com so it works on both subdomains

This commit is contained in:
M1 2026-03-16 17:26:56 +04:00
parent ef56b47b09
commit 0597c7f6e7
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ const COOKIE_OPTS = {
secure: true, secure: true,
sameSite: "lax" as const, sameSite: "lax" as const,
path: "/", path: "/",
domain: ".pingql.com", // share across pingql.com and api.pingql.com
maxAge: 60 * 60 * 24 * 365, // 1 year maxAge: 60 * 60 * 24 * 365, // 1 year
}; };