mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
vite config: allow cors access from pretix.work subdomains
This commit is contained in:
@@ -20,5 +20,8 @@ export default defineConfig({
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: ['moment', 'jquery']
|
||||
}
|
||||
},
|
||||
server: {
|
||||
cors: { origin: /^https?:\/\/(?:(?:[^:]+\.)?localhost|127\.0\.0\.1|\[::1\]|[^:]+\.pretix\.work)(?::\d+)?$/ },
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user