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, }), );