How to: Configure cross-origin resource sharing in Alta Aware
Last modified: Friday February 23, 2024.
Aware administrators can use the Aware API to set a list of allowable cross-origin resource sharing (CORS) domains for a deployment.
- Send an HTTP PUT request to https://<serverAddress>/api/v1/config, where <serverAddress> is the deployment path.
- For example, https://test-deployment.eu1.aware.avasecurity.com/api/v1/config
- The request body must contain a field called "cross_origin_site_list" that defines an array of allowed domains.
- A domain may start with a wildcard. For example, "*.a.com" will match "a.com", "b.a.com", and "c.b.a.com".
For information on how to authenticate API requests, see How to: Get started with the Alta Aware API.