Reputation: 211
Is it possible to make API call from one website to API - both located on same server. When I run it on my machine - I am able to get results if calling API from localhost. When I publish it to the server - I am not getting any results. Can't debug code on server side - do not have tools for that.
Upvotes: 0
Views: 792
Reputation: 59
It could be firewall that's not letting the request go through. If it is a REST API that you're calling, you can try POSTMAN and test your API. If you are able to get the result, then there could be something wrong with the call you're making.
Upvotes: 1