feat: allow setup wizard over plain HTTP with dismissable warning gate

This commit is contained in:
Linus Rath
2026-05-20 19:01:46 +02:00
parent 433a63bf1a
commit 1c44f59ba1
3 changed files with 50 additions and 39 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ export async function POST(request: NextRequest) {
}
const response = NextResponse.json({ ok: true });
const attrs = buildSessionCookieAttributes();
const attrs = buildSessionCookieAttributes(request);
response.cookies.set(attrs.name, submitted, {
httpOnly: attrs.httpOnly,
sameSite: attrs.sameSite,