diff --git a/web_dashboard/templates/index.html b/web_dashboard/templates/index.html
index 304e6d0f6..970970209 100644
--- a/web_dashboard/templates/index.html
+++ b/web_dashboard/templates/index.html
@@ -2800,7 +2800,10 @@
// Utiliser le proxy du dashboard pour éviter les problèmes CORS
const STREAMING_BASE = '/api/streaming';
- const VWB_IMPORT_URL = 'http://localhost:5002/api/workflows/import-core';
+ // Construire VWB_IMPORT_URL dynamiquement à partir de l'origine actuelle (ex: http://192.168.1.45:5001 -> http://192.168.1.45:5002)
+ // pour éviter le hardcoded localhost et permettre les tests depuis la VM/poste via l'IP du banc.
+ const VWB_BASE = window.location.origin.replace(/:\d+$/, ':5002');
+ const VWB_IMPORT_URL = `${VWB_BASE}/api/workflows/import-core`;
async function refreshStreaming() {
await Promise.all([