v-vemami
4 years agoHelper
Calling outside api from khoros results in cors issue
Hi Team, Greetings of the day, I have created a web API and tried to call from khoros as below <#assign http_client_request = http.client.request("https", "localhost:44340", "/api/Values").get() /...
- 4 years ago
Hi v-vemami , the http.client.request context object is for making server-to-server API calls. You will not be able to test with your localhost using this method. If you do not need a server-side API call, you could try moving your logic to JavaScript/jQuery to call your API. Otherwise, you'll need to host your service in a location that is accessible to Khoros servers.