I am building an angular2 app with node as server,below is my api..
http://localhost:3000/api/auth/getcategories
When i called the abpove api,i got the following error in my console,
XMLHttpRequest cannot load http://localhost:3000/api/auth/getcategories.
Response to preflight request doesn't pass access control check:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost:8000' is therefore not allowed access.
I am not sure about the next step to solve the above issue,can anyone suggest help......