Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(cors): allow http://tauri.localhost origin for Windows

Louis Beaumont1f692d8ec860
diff --git a/crates/screenpipe-engine/src/server.rs b/crates/screenpipe-engine/src/server.rs
index 9d591527e..6d6469c5b 100644
--- a/crates/screenpipe-engine/src/server.rs
+++ b/crates/screenpipe-engine/src/server.rs
@@ -497,6 +497,7 @@ impl SCServer {
origin.as_bytes().starts_with(b"http://localhost")
|| origin.as_bytes().starts_with(b"https://localhost")
|| origin.as_bytes().starts_with(b"tauri://localhost")
+ || origin.as_bytes().starts_with(b"http://tauri.localhost") // Windows Tauri origin
|| origin.as_bytes().starts_with(b"http://127.0.0.1")
|| origin.as_bytes().starts_with(b"https://127.0.0.1")
}))