opencode
opencode copied to clipboard
Documented new configurable CORS option
What changed (last 4 hours)
-
b1a6333d1 feat(core): configurable cors hostsadds 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.corsin the config reference, including an example value and note that it expects full origins:packages/web/src/content/docs/config.mdx:125 - Documented
--corsforopencode serve, including an example showing the flag can be repeated:packages/web/src/content/docs/server.mdx:13 - Added
--corsto the CLI flag tables for bothserveandweb:packages/web/src/content/docs/cli.mdx:353
Validation
- Ran
bun run buildinpackages/websuccessfully (Astro build completed).
Triggered by scheduled workflow
opencode session | github run