Explorar o código

fix(core): cors exception for tauri

Adam hai 3 meses
pai
achega
a02fefe9dc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/opencode/src/server/server.ts

+ 1 - 1
packages/opencode/src/server/server.ts

@@ -111,7 +111,7 @@ export namespace Server {
 
             if (input.startsWith("http://localhost:")) return input
             if (input.startsWith("http://127.0.0.1:")) return input
-            if (input === "tauri://localhost") return input
+            if (input === "tauri://localhost" || input === "http://tauri.localhost") return input
 
             // *.opencode.ai (https only, adjust if needed)
             if (/^https:\/\/([a-z0-9-]+\.)*opencode\.ai$/.test(input)) {