fix(core): cors exception for tauri

pull/6512/head
Adam 2025-12-30 14:14:44 -06:00
parent cb0e05db26
commit a02fefe9dc
No known key found for this signature in database
GPG Key ID: 9CB48779AF150E75
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {