docs: clarify CORS configuration options (#1011)

* docs: clarify CORS configuration options

* docs: use double quotes
pull/1017/head
Randall Morey 5 years ago committed by GitHub
parent 4ea5aa0014
commit e3c30defbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -136,7 +136,7 @@ listener "tcp" {
# Uncomment to enable CORS for the Admin UI. Be sure to set the allowed origin(s)
# to appropriate values.
#cors_enabled = true
#cors_allowed_origins = ["yourcorp.yourdomain.com"]
#cors_allowed_origins = ["https://yourcorp.yourdomain.com", "serve://boundary"]
}
# Data-plane listener configuration block (used for worker coordination)

@ -61,6 +61,16 @@ allowed.
request duration allowed before Boundary cancels the request. This overrides
`default_max_request_duration` for this listener.
- `cors_enabled` `(boolean: true)` - Specifies if CORS should be enabled, which
allows Boundary to support external browser-based clients (not including
admin UI), such as Boundary Desktop.
- `cors_allowed_origins` `(array(string): ["serve://boundary"])` - an array of
allowed CORS origins. Origins must include protocol, host, and port (if port
is different than the default for the specified protocol).
To allow all origins, set to `['*']`. By default, Boundary Desktop's origin
`serve://boundary` is allowed.
### TLS
~> All `tls` parameters are valid only for the `api` listener. `cluster` and

Loading…
Cancel
Save