How to handle CORS in NestJs Fastify

Discussão em 'Angular' iniciado por ALI Omidian, Março 14, 2025.

  1. ALI Omidian

    ALI Omidian Guest

    I am trying to handle CORS in an Angular application. In my main.ts:

    const adapter = new FastifyAdapter();
    const app = await NestFactory.create<NestFastifyApplication>(AppModule, adapter);
    app.enableCors();


    But my angular client produces CORS errors.

    Is this is a bug in NestJS?

    Continue reading...

Compartilhe esta Página