mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-08-29 01:08:59 +00:00
FIX - bind preview server to one loopback address
This commit is contained in:
@@ -34,8 +34,8 @@ export default defineConfig(({ command }) => ({
|
||||
allow: [fileURLToPath(new URL('.', import.meta.url))],
|
||||
strict: false,
|
||||
},
|
||||
// YouTube rejects otherwise valid embeds when the dev page uses the
|
||||
// numeric loopback origin. Keep the local UI on the localhost origin.
|
||||
host: 'localhost',
|
||||
// Bind one loopback family so strictPort also rejects a second dev server.
|
||||
// Open the UI through localhost so embeds still receive that page origin.
|
||||
host: '127.0.0.1',
|
||||
},
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user