API : Access-Control-Allow-Origin error for localhost


Sorry for bothering you with a newbie question but I’ve been looking for an answer for quite a long time with no success…

I am trying to use a morph API from an app I’m building, but I have a CORS error when I run my app on localhost…

XMLHttpRequest cannot load https://obscure-wildwood-26958.herokuapp.com/tadas-subonis/imdb-top-250/data.json?query=select%2520*%2520from%2520%27data%27. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access.

I don’t have any problem when I send a get to this API with Postman, any idea about how can I test my app on localhost ?

Any help would be very appreciated :slight_smile: