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();
|
const cookieStore = await cookies();
|
||||||
cookieStore.set("auth_token", token, {
|
cookieStore.set("auth_token", token, {
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
secure: process.env.NODE_ENV === "production",
|
secure: false, // Allow HTTP for local network access
|
||||||
sameSite: "lax",
|
sameSite: "lax",
|
||||||
path: "/",
|
path: "/",
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user