Enabling Cross-Origin Resource Sharing
To enable cross-origin resource sharing:
-
From the Partition and Departments dropdown menu, go to the partition space.
-
In the Navigation menu, browse to Security > CORS.
-
On the Properties page, set the following:
-
Enable Cross Origin Resource Sharing: Click the Toggle button to enable CORS.
-
Select origins for CORS: Select Allow all origins for CORS or select Allow following origins for CORS .
V3 APIs do not function with CORS for all domain enabled due to their multi-tenanted nature. They only operate with CORS for specific domains.
-
Add Allowed Websites: This field is enabled if Allow following origins for CORS is selected. Enter the domain or URL and click the Done button. The URL must contain a protocol, http// or https// (in lower case), followed by the domain name or IP address. The domain name can contain only numbers, alphabets, dot (.), and hyphen (-). For example, http://company-name.com or https://10.10.20.30
-
- Click the Save button.
Related Topics