vite config: allow cors access from pretix.work subdomains

This commit is contained in:
Mira Weller
2026-03-19 13:52:18 +01:00
parent fef1e356f7
commit e0744951e8

View File

@@ -20,5 +20,8 @@ export default defineConfig({
}, },
optimizeDeps: { optimizeDeps: {
exclude: ['moment', 'jquery'] exclude: ['moment', 'jquery']
} },
server: {
cors: { origin: /^https?:\/\/(?:(?:[^:]+\.)?localhost|127\.0\.0\.1|\[::1\]|[^:]+\.pretix\.work)(?::\d+)?$/ },
},
}) })