I want to make a GET and POST request from my client to Mocky IO.
Here is my code:
function getData() {
return $http.get('http://www.mocky.io/v2/5185415ba171ea3a00704eed');
}
I am getting following error:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access.
How can this be resolved?