diff --git a/main.js b/main.js index 40883b7..9582d45 100644 --- a/main.js +++ b/main.js @@ -410,7 +410,7 @@ async function start() { expressServer = expressApp.listen(FRONTEND_PORT, '127.0.0.1', () => { sendToTauri('status', { message: 'All backend services running and healthy.' }); debugLog("Frontend Express running on 4890. Sending READY to Tauri."); - sendToTauri('ready', { url: `http://localhost:${FRONTEND_PORT}` }); + sendToTauri('ready', { url: `http://127.0.0.1:${FRONTEND_PORT}` }); }); } catch (error) { diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 9bd23a4..55ddb5b 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -503,9 +503,9 @@ fn open_new_window(app: tauri::AppHandle, url: String) -> Result<(), String> { let final_url = if url.starts_with("http") || url.starts_with("tauri://") { url.clone() } else if url.starts_with('/') { - format!("http://localhost:4890{}", url) + format!("http://127.0.0.1:4890{}", url) } else { - format!("http://localhost:4890/{}", url) + format!("http://127.0.0.1:4890/{}", url) }; if let Some(window) = app.get_webview_window("main") {