From 0d23169a9ce855e58f1a5bd7bfe1c8586abb9291 Mon Sep 17 00:00:00 2001 From: DerEchteAlec Date: Thu, 13 Aug 2026 04:31:18 +0200 Subject: [PATCH] FIX - bind preview server to one loopback address --- frontend/vite.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index a85b7b7..0c130de 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -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', }, }))