fix: set cookie domain to .pingql.com so it works on both subdomains
This commit is contained in:
@@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user