fix(opencode): allow oc://renderer origin in cors middleware (#25099)
This commit is contained in:
parent
908e28175f
commit
62e1335388
1 changed files with 1 additions and 0 deletions
|
|
@ -74,6 +74,7 @@ export function CorsMiddleware(opts?: { cors?: string[] }): MiddlewareHandler {
|
|||
|
||||
if (input.startsWith("http://localhost:")) return input
|
||||
if (input.startsWith("http://127.0.0.1:")) return input
|
||||
if (input.startsWith("oc://renderer")) return input
|
||||
if (input === "tauri://localhost" || input === "http://tauri.localhost" || input === "https://tauri.localhost")
|
||||
return input
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue