From e0744951e843a601b31b0f3b9825d2d4275585dd Mon Sep 17 00:00:00 2001 From: Mira Weller Date: Thu, 19 Mar 2026 13:52:18 +0100 Subject: [PATCH] vite config: allow cors access from pretix.work subdomains --- vite.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index e0aa1e4d6a..c1d1c30f53 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -20,5 +20,8 @@ export default defineConfig({ }, optimizeDeps: { exclude: ['moment', 'jquery'] - } + }, + server: { + cors: { origin: /^https?:\/\/(?:(?:[^:]+\.)?localhost|127\.0\.0\.1|\[::1\]|[^:]+\.pretix\.work)(?::\d+)?$/ }, + }, })