Default Behavior
By default, no CORS origins are allowed. You must explicitly specify origins for browser-based applications:The built-in Inspector UI at
/ui/ is served from the same origin as the server, so it does not require CORS configuration.Options
| Flag | Description |
|---|---|
--cors-allow-origin | Origins to allow |
--cors-allow-method | HTTP methods to allow (defaults to all if not specified) |
--cors-allow-header | Headers to allow (defaults to all if not specified) |
--cors-allow-credentials | Allow credentials (cookies, authorization headers) |