[PR #6522] docs: new configurable CORS option #11952

Closed
opened 2026-02-16 18:16:53 -05:00 by yindo · 0 comments
Owner

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

State: closed
Merged: Yes


What changed (last 4 hours)

  • b1a6333d1 feat(core): configurable cors hosts adds a new user-facing server option to allow additional CORS origins (via config and CLI flags).
  • The other commits are stats churn or internal SDK/header tweaks (22091c29f, e7e89dc5a, 34e9392bb, 05c3bc27f) and don’t need user docs updates.

Docs updates made (for undocumented CORS feature)

  • Documented server.cors in the config reference, including an example value and note that it expects full origins: packages/web/src/content/docs/config.mdx:125
  • Documented --cors for opencode serve, including an example showing the flag can be repeated: packages/web/src/content/docs/server.mdx:13
  • Added --cors to the CLI flag tables for both serve and web: packages/web/src/content/docs/cli.mdx:353

Validation

  • Ran bun run build in packages/web successfully (Astro build completed).

Triggered by scheduled workflow

New%20session%20-%202025-12-31T12%3A10%3A35.381Z
opencode session  |  github run

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6522 **State:** closed **Merged:** Yes --- **What changed (last 4 hours)** - `b1a6333d1 feat(core): configurable cors hosts` adds a new user-facing server option to allow additional CORS origins (via config and CLI flags). - The other commits are stats churn or internal SDK/header tweaks (`22091c29f`, `e7e89dc5a`, `34e9392bb`, `05c3bc27f`) and don’t need user docs updates. **Docs updates made (for undocumented CORS feature)** - Documented `server.cors` in the config reference, including an example value and note that it expects full origins: `packages/web/src/content/docs/config.mdx:125` - Documented `--cors` for `opencode serve`, including an example showing the flag can be repeated: `packages/web/src/content/docs/server.mdx:13` - Added `--cors` to the CLI flag tables for both `serve` and `web`: `packages/web/src/content/docs/cli.mdx:353` **Validation** - Ran `bun run build` in `packages/web` successfully (Astro build completed). Triggered by scheduled workflow <a href="https://opencode.ai/s/yCBqAA69"><img width="200" alt="New%20session%20-%202025-12-31T12%3A10%3A35.381Z" src="https://social-cards.sst.dev/opencode-share/TmV3IHNlc3Npb24gLSAyMDI1LTEyLTMxVDEyOjEwOjM1LjM4MVo=.png?model=opencode/gpt-5.2&version=1.0.218&id=yCBqAA69" /></a> [opencode session](https://opencode.ai/s/yCBqAA69)&nbsp;&nbsp;|&nbsp;&nbsp;[github run](/sst/opencode/actions/runs/20618698694)
yindo added the pull-request label 2026-02-16 18:16:53 -05:00
yindo closed this issue 2026-02-16 18:16:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11952