Skip to content

Commit 6b21e9f

Browse files
Theodor N. EngøyTheodor N. Engøy
authored andcommitted
docs: mention MCP_CORS_ORIGIN_REGEX in examples
1 parent 5c91876 commit 6b21e9f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

examples/server/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ pnpm --filter @modelcontextprotocol/examples-server exec tsx src/simpleStreamabl
1818

1919
By default, example servers bind to `localhost`. To bind to a different interface, set `MCP_HOST` (for example `MCP_HOST=0.0.0.0`).
2020

21+
Some examples also enable demo-only CORS for browser-based clients. By default they only allow loopback origins; to allow a different origin, set `MCP_CORS_ORIGIN_REGEX` (for example `MCP_CORS_ORIGIN_REGEX=^https://chatgpt\\.com$`).
22+
2123
Or, from within this package:
2224

2325
```bash

0 commit comments

Comments
 (0)