Skip to main content

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​

ParameterRequiredDescriptionDefault
<domain>YesSecurity domain, several separated by commas—
-e, --env-id <envId>NoEnvironment IDenvId 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:// or https:// prefix