Update the List of Allowed Domains for CORS Processing
put
/ic/api/integration/v1/environment/corsdomains
If you need to make modifications to the existing list of domains, use this API function to replace the existing list. Use the following format in the json payload: scheme, hostname, and port (optional). For example, "corsDomains": ["https://abc.com", "http://xyz.com:123"]. To clear or delete the list, update with an empty list. For example: "corsDomains": [].
Request
Supported Media Types
- application/json
CORS domains resource
Response
Supported Media Types
- application/json; charset=utf-8
204 Response
Successful operation
400 Response
Bad request, missing required data
500 Response
Server error