mirror of
https://github.com/decolua/9router.git
synced 2026-05-08 12:01:28 +00:00
fix(auth): allow HTTP for local network
This commit is contained in:
@@ -34,7 +34,7 @@ export async function POST(request) {
|
||||
const cookieStore = await cookies();
|
||||
cookieStore.set("auth_token", token, {
|
||||
httpOnly: true,
|
||||
secure: process.env.NODE_ENV === "production",
|
||||
secure: false, // Allow HTTP for local network access
|
||||
sameSite: "lax",
|
||||
path: "/",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user