Enable Cross-Origin Requests (CORS)
You may encounter CORS (Cross-Origin Requests) errors when attempting to hit Composable services (for example, at localhost/CompAnalytics/) from a web app running on, for example, localhost:8080.
You can normally fix this by editing the web.config file.
- Look in the install folder (e.g., c:\program files\companalytics\webapp\web.config)
- Find the cors config key and add an appropriate entry
For the example above, the entry would be:
<add key="CorsAllowHosts" value="http://localhost:8080;http://localhost;" />