tcb cors add
Add one or more security domains to the current environment.
v3.0.0+
tcb cors has been available since v3.0.0.
Usage
tcb cors add <domain> [options]
Parameters
| Parameter | Required | Description | Default |
|---|---|---|---|
<domain> | Yes | Security domain, several separated by commas | — |
-e, --env-id <envId> | No | Environment ID | envId in the configuration |
Examples
# One domain
tcb cors add example.com -e <envId>
# Several domains
tcb cors add example.com,test.example.com -e <envId>
Notes
- Adding an existing domain fails and asks you to delete it first
- Use a bare domain, without the
http://orhttps://prefix