fix cookie
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
||||
cookie: {
|
||||
secure: false, // Set to true in production with HTTPS
|
||||
httpOnly: true,
|
||||
maxAge: 24 * 60 * 60 * 1000, // 24 hours
|
||||
maxAge: 30 * 24 * 60 * 60 * 1000, // 30 days for development
|
||||
sameSite: 'lax' // Allow cross-origin requests for development
|
||||
}
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user