fix: add litter.psbailey.uk to Vite allowed hosts
- Add server.allowedHosts configuration to vite.config.js - Allow litter.psbailey.uk and all .psbailey.uk subdomains - Enable host: true for external access This fixes the 'Blocked request' error when accessing from the production domain.
This commit is contained in:
@@ -5,6 +5,14 @@ import path from 'path'
|
|||||||
|
|
||||||
// https://vite.dev/config/
|
// https://vite.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
server: {
|
||||||
|
host: true, // Allow external access
|
||||||
|
allowedHosts: [
|
||||||
|
'localhost',
|
||||||
|
'litter.psbailey.uk',
|
||||||
|
'.psbailey.uk', // Allow all subdomains
|
||||||
|
],
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
react(),
|
react(),
|
||||||
VitePWA({
|
VitePWA({
|
||||||
|
|||||||
Reference in New Issue
Block a user