mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 16:40:48 +00:00
fix(core): cors exception for tauri
This commit is contained in:
parent
cb0e05db26
commit
a02fefe9dc
1 changed files with 1 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue