|
|
@@ -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 |
|
|
|
|
|
|
---
|
|
|
|