--server-enable-cors
- CLI
- --server-enable-cors
- REST
- CLI only
Lets a web page on another origin call the server. Without a value any origin is allowed; with a comma-separated list of origins, only those.
- Preflights are answered before authentication, so a page sends its token on the request itself.
GET,POSTandDELETEare allowed, withContent-Type,Authorizationand the MCP session headers.Linkis exposed, so a page reads the URLs of a render’s additional assets and fetches them from/assets.Content-Disposition,Content-Digest,ETag,Age,Server-Timingandx-zshot-llm-usageare exposed too.
Example
CLI
Run locally
zshot --server \
--server-token-auth s3cr3t \
--server-enable-cors=https://app.example.com,http://localhost:5173