From 324e5d8e4950272d6008aa524443f4a6449be54e Mon Sep 17 00:00:00 2001 From: Federico Liva Date: Wed, 4 Mar 2026 10:40:46 +0100 Subject: [PATCH] Revert CORS config to default for production compatibility Co-authored-by: Qwen-Coder --- backend/src/index.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index 376d19e..979556c 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -256,12 +256,7 @@ const app = express(); const PORT = process.env.PORT || 3001; // Middleware -app.use(cors({ - origin: ['http://localhost:5173', 'http://127.0.0.1:5173'], - credentials: true, - methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'], - allowedHeaders: ['Content-Type', 'Authorization'], -})); +app.use(cors()); app.use(express.json()); // Health check endpoint