add same origin to cookies
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-04-21 20:51:23 +01:00
parent ca0c2877b5
commit 51a7e85858
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -51,8 +51,8 @@ export async function GET(req: Request) {
secure: isHttps,
sameSite: "none",
path: "/",
...(env.COOKIE_DOMAIN ? { domain: env.COOKIE_DOMAIN } : {}),
maxAge: data.expires_in,
...(BASE_URL ? { BASE_URL } : {}),
});
return res;
+2
View File
@@ -1,3 +1,4 @@
import { env } from "@/lib/env";
import { NextResponse } from "next/server";
export async function POST(req: Request) {
@@ -9,6 +10,7 @@ export async function POST(req: Request) {
httpOnly: true,
secure: true,
sameSite: "none",
...(env.COOKIE_DOMAIN ? { domain: env.COOKIE_DOMAIN } : {}),
path: "/",
});