Skip to content

Commit 169c8f8

Browse files
committed
docs(cli): correct the service set cors example
set cors replaces the whole list rather than adding an origin, and the value is a comma-separated list of HTTP(S) origins.
1 parent 35e9280 commit 169c8f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/web/src/content/docs

‎packages/web/src/content/docs/cli.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,10 @@ Set service configuration.
430430
opencode service set hostname 0.0.0.0
431431
```
432432

433-
Allow an extra CORS origin.
433+
Set the allowed CORS origins, replacing the current list. The value is a comma-separated list of HTTP(S) origins, written without paths or trailing slashes.
434434

435435
```bash
436-
opencode service set cors https://app.example.com
436+
opencode service set cors https://app.example.com,https://admin.example.com
437437
```
438438

439439
Pass an environment variable to the server process.

0 commit comments

Comments
 (0)