mirror of
https://github.com/pretix/pretix.git
synced 2026-05-11 16:13:59 +00:00
vite config: allow cors access from pretix.work subdomains
This commit is contained in:
@@ -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+)?$/ },
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user