[PR #2566] feat(server): enable CORS wildcard via Hono middleware #10355

Open
opened 2026-02-16 18:14:59 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2566

State: open
Merged: No


Adds Hono cors() middleware at top-level (app.use("*", cors())). This sets Access-Control-Allow-Origin: * for all routes, including preflight. If credentialed requests are needed later, we can switch to a dynamic origin function and set credentials: true.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2566 **State:** open **Merged:** No --- Adds Hono cors() middleware at top-level (app.use("*", cors())). This sets Access-Control-Allow-Origin: * for all routes, including preflight. If credentialed requests are needed later, we can switch to a dynamic origin function and set credentials: true.
yindo added the pull-request label 2026-02-16 18:14:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10355