diff options
| author | opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com> | 2025-12-31 11:11:20 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-31 11:11:20 -0600 |
| commit | c42bd492eae1178dae438e8509ddfb942ca116dc (patch) | |
| tree | 6e13775c09d568be470f8b6d1fa801014248debd /packages/web/src/content/docs/cli.mdx | |
| parent | 840fe030ab6f2c026bbb14b4ddddc0ed2a352bb3 (diff) | |
| download | opencode-c42bd492eae1178dae438e8509ddfb942ca116dc.tar.gz opencode-c42bd492eae1178dae438e8509ddfb942ca116dc.zip | |
docs: new configurable CORS option (#6522)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Diffstat (limited to 'packages/web/src/content/docs/cli.mdx')
| -rw-r--r-- | packages/web/src/content/docs/cli.mdx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/packages/web/src/content/docs/cli.mdx b/packages/web/src/content/docs/cli.mdx index 4fe1d6103..329ce2ee7 100644 --- a/packages/web/src/content/docs/cli.mdx +++ b/packages/web/src/content/docs/cli.mdx @@ -362,11 +362,12 @@ This starts an HTTP server that provides API access to opencode functionality wi #### Flags -| Flag | Description | -| ------------ | --------------------- | -| `--port` | Port to listen on | -| `--hostname` | Hostname to listen on | -| `--mdns` | Enable mDNS discovery | +| Flag | Description | +| ------------ | ------------------------------------------ | +| `--port` | Port to listen on | +| `--hostname` | Hostname to listen on | +| `--mdns` | Enable mDNS discovery | +| `--cors` | Additional browser origin(s) to allow CORS | --- @@ -457,11 +458,12 @@ This starts an HTTP server and opens a web browser to access OpenCode through a #### Flags -| Flag | Description | -| ------------ | --------------------- | -| `--port` | Port to listen on | -| `--hostname` | Hostname to listen on | -| `--mdns` | Enable mDNS discovery | +| Flag | Description | +| ------------ | ------------------------------------------ | +| `--port` | Port to listen on | +| `--hostname` | Hostname to listen on | +| `--mdns` | Enable mDNS discovery | +| `--cors` | Additional browser origin(s) to allow CORS | --- |
