docs: new configurable CORS option #6522
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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).22091c29f,e7e89dc5a,34e9392bb,05c3bc27f) and don’t need user docs updates.Docs updates made (for undocumented CORS feature)
server.corsin the config reference, including an example value and note that it expects full origins:packages/web/src/content/docs/config.mdx:125--corsforopencode serve, including an example showing the flag can be repeated:packages/web/src/content/docs/server.mdx:13--corsto the CLI flag tables for bothserveandweb:packages/web/src/content/docs/cli.mdx:353Validation
bun run buildinpackages/websuccessfully (Astro build completed).Triggered by scheduled workflow
opencode session | github run