From 1552f3e8164eb22eb2f4e107374e6f426a60a60a Mon Sep 17 00:00:00 2001 From: Pierre Jeambrun Date: Wed, 22 Jan 2025 16:36:58 +0100 Subject: [PATCH] AIP-38 Fix UI following vite upgrade (#45934) --- airflow/ui/vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/airflow/ui/vite.config.ts b/airflow/ui/vite.config.ts index 767e72296f20d..947997eeb0592 100644 --- a/airflow/ui/vite.config.ts +++ b/airflow/ui/vite.config.ts @@ -34,6 +34,9 @@ export default defineConfig({ cssInjectedByJsPlugin(), ], resolve: { alias: { openapi: "/openapi-gen", src: "/src" } }, + server: { + cors: true, // Only used by the dev server. + }, test: { coverage: { include: ["src/**/*.ts", "src/**/*.tsx"],