Rest Api calls are failing

hello everyone,

When I load my community site in a web browser. I receive errors (pertaining to api.ashx calls) on my browser console. The site loads just fine on the server. And I see these errors and rest api call failures when i try to access the site from any place other than on the server it is configured on.

Any pointers to troubleshoot the issue is much appreciated.