Skip to content

Commit 62e1335

Browse files
authored
fix(opencode): allow oc://renderer origin in cors middleware (#25099)
1 parent 908e281 commit 62e1335

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/opencode/src/server/middleware.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export function CorsMiddleware(opts?: { cors?: string[] }): MiddlewareHandler {
7474

7575
if (input.startsWith("http://localhost:")) return input
7676
if (input.startsWith("http://127.0.0.1:")) return input
77+
if (input.startsWith("oc://renderer")) return input
7778
if (input === "tauri://localhost" || input === "http://tauri.localhost" || input === "https://tauri.localhost")
7879
return input
7980

0 commit comments

Comments
 (0)