diff --git a/src/shared/middlewares/middleware.config.ts b/src/shared/middlewares/middleware.config.ts index ccca016a..7c10ab90 100644 --- a/src/shared/middlewares/middleware.config.ts +++ b/src/shared/middlewares/middleware.config.ts @@ -12,7 +12,8 @@ export const configMiddlewares = (app: INestApplication) => { app.use( helmet({ contentSecurityPolicy: process.env.NODE_ENV === 'production' ? undefined : false }), ) - app.enableCors(configCORS()) + app.enableCors({}) + // app.enableCors(configCORS()) app.use( rateLimit({ windowMs: 15 * 60 * 1000,