FIX - bind preview server to one loopback address

This commit is contained in:
DerEchteAlec
2026-08-13 04:31:18 +02:00
parent fd7eaf6887
commit 0d23169a9c
+3 -3
View File
@@ -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',
},
}))