Skip to content

Commit a02fefe

Browse files
committed
fix(core): cors exception for tauri
1 parent cb0e05d commit a02fefe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/src/server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export namespace Server {
111111

112112
if (input.startsWith("http://localhost:")) return input
113113
if (input.startsWith("http://127.0.0.1:")) return input
114-
if (input === "tauri://localhost") return input
114+
if (input === "tauri://localhost" || input === "http://tauri.localhost") return input
115115

116116
// *.opencode.ai (https only, adjust if needed)
117117
if (/^https:\/\/([a-z0-9-]+\.)*opencode\.ai$/.test(input)) {

0 commit comments

Comments
 (0)