I have the same problem and solved it by adding app.enableCorse()
in main.ts file in nest
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors()
await app.listen(process.env.PORT ?? 4000);
}
and i hope this work with you two , this allow the Cors to Get Requests from origin points ==> localhost