Fix session cookie configuration and add debugging for authentication issues

This commit is contained in:
Ryderjj89
2025-09-13 17:16:22 -04:00
parent 4d5d7b74b8
commit dbdb455772
2 changed files with 13 additions and 3 deletions

View File

@@ -18,7 +18,10 @@ app.use(helmet({
}));
app.use(cors({
origin: process.env.FRONTEND_URL || true,
credentials: true
credentials: true,
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
allowedHeaders: ['Content-Type', 'Authorization', 'Cookie'],
exposedHeaders: ['Set-Cookie']
}));
app.use(express.json());