tcb cors list
List the security domains of the current environment.
v3.0.0+
tcb cors has been available since v3.0.0, replacing the security domain features of tcb service.
Security domains restrict which origins may call CloudBase resources (database, storage, functions) with the Web SDK; only allowlisted origins can send browser requests.
Usage
tcb cors list [options]
Parameters
| Parameter | Required | Description | Default |
|---|---|---|---|
-e, --env-id <envId> | No | Environment ID | envId in the configuration |
Examples
tcb cors list -e <envId>
域名 Id 域名 创建时间 状态
1001 example.com 2025-01-01 10:00:00 启用中
1002 test.example.com 2025-01-02 10:00:00 启用中
Related Commands
- Add security domains
- Delete security domains
- List domains: custom domains of the HTTP gateway, a different concept