Skip to content Skip to sidebar Skip to footer

How To Get Json Information From Asp.net Core Web App Using Javascript

I've been using eBay finding API for some time, it worked at as it supposed to, I've implemented it with JavaScript like shown in they'r documentation. and recently, out of nowhere

Solution 1:

Sorry for my first answer. The reason you are receiving an empty response is related to the cross origin header missing from server side. The response from the server must include "Access-Control-Allow-Origin" header. You may test below url it includes this header and it will work with ajax.

http://api.geonames.org/countryInfoJSON?formatted=true&lang=en&country=US&username=webucator&style=full

Post a Comment for "How To Get Json Information From Asp.net Core Web App Using Javascript"