I am using angular js and trying to make an api call, but I keep getting CORS errors in my javascript console. My api call looks like this
$http.get("http://www.comicvine.com/api/characters/?api_key=key&limit=10&format=json")
But whenever I run this code I am getting this error in my console.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://www.comicvine.com/api/characters/?api_key=[key]4&limit=10&format=json. This can be fixed by moving the resource to the same domain or enabling CORS.
Does anyone know how I can get past this? Is it because I am running my server on localhost? Thanks
Log in to comment