From 633a4a9f46b27906c08ba43b79f44097668bff77 Mon Sep 17 00:00:00 2001 From: 0xEbrahim Date: Fri, 10 Jul 2026 22:44:07 +0300 Subject: [PATCH] 0xebrahim/fix-docker --- src/app.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/app.ts b/src/app.ts index ed27f67..5467d94 100644 --- a/src/app.ts +++ b/src/app.ts @@ -32,12 +32,7 @@ app.use(express.urlencoded({ extended: true })); app.use( cors({ - origin: - env.NODE_ENV === 'production' - ? env.FRONTEND_URL - : ['http://localhost:3000', 'http://localhost:5173'], - methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'], - allowedHeaders: ['Content-Type', 'Authorization'], + origin: true, credentials: true, }), );