3 years ago
Endpoint: External api gives in correct json data
Hi,
I am able to retrieve user location using bing api.
Environment: staging
Issue here is: When I try to call bing api with Ajax, it gives me correct user location.
When I call same api using endpoint + http.client.request, api gives me in-correct solution.
Are there any proxy settings blocking endpoint to provide correct location in Khoros staging?
Thanks for your inputs.
I was able to make it work by passing ip address in headers.
<#assign response = http.client.request("api").header("X-FORWARDED-FOR",ipaddress).get()/>