I am building an application using WorldBank API, but WorldBank API does not support JSONP. So is there a way to parse remote JSON using Javascript. Thank You
2 Answers
Due to the same origin policy restriction you cannot send direct AJAX calls to different domains. You may take a look at the following guide for different solutions. Since JSONP is out of the equation for you, an alternative would be to use a server side script that will act as a bridge between your domain and the distant domain.
2 Comments
NeoStar
Hello Thanks for responding, Will creating a proxy affect performance of the application??
Darin Dimitrov
@NeoStar, this will depend on how you implement it but in all cases there will be a performance penalty due to the additional requests.