【发布时间】:2020-05-22 02:38:25
【问题描述】:
我正在尝试在 Angular 应用程序中处理 CORS。在我的main.ts:
const adapter = new FastifyAdapter();
const app = await NestFactory.create<NestFastifyApplication>(AppModule, adapter);
app.enableCors();
但我的 Angular 客户端会产生 CORS 错误。
这是 NestJS 中的错误吗?
【问题讨论】:
-
请从您的 Angular 应用控制台添加一些错误输出。