feat(config): update server settings and CORS options

This commit is contained in:
2025-03-09 14:41:43 +01:00
parent c82aa23b41
commit 9b0ecf18c7

View File

@ -20,13 +20,24 @@ export default defineConfig({
vite: {
plugins: [tailwindcss()],
server: {
allowedHosts: ['jleibl.net'],
port: 4321
host: '0.0.0.0',
allowedHosts: true,
cors: {
origin: '*',
methods: ['GET'],
allowedHeaders: ['X-Requested-With']
}
},
preview: {
host: '0.0.0.0',
allowedHosts: ['jleibl.net'],
port: 4321
port: 4321,
cors: {
origin: '*',
methods: ['GET'],
allowedHeaders: ['X-Requested-With']
}
}
}
});