opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Documented new configurable CORS option

Open opencode-agent[bot] opened this issue 2 weeks ago • 0 comments

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

opencode-agent[bot] avatar Dec 31 '25 12:12 opencode-agent[bot]