diff --git a/apps/api-gateway/src/main.ts b/apps/api-gateway/src/main.ts index db562cac..931ffac6 100644 --- a/apps/api-gateway/src/main.ts +++ b/apps/api-gateway/src/main.ts @@ -26,12 +26,18 @@ async function bootstrap() { ) const configService = app.get(ConfigService) - const frontendUrl = configService.get('FRONTEND_HOST') + // const frontendUrl = configService.get('FRONTEND_HOST') + + // app.enableCors({ + // origin: [frontendUrl], + // methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'], + // credentials: true, + // }) app.enableCors({ - origin: [frontendUrl], + origin: '*', methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'], - credentials: true, + // credentials: true, }) await app.register(fastifyMultipart, {