i\'ve created a small API using Node/Express and trying to pull data using Angularjs but as my html page is running under apache on localhost:8888 and node API is listen on
Install cors dependency in your project:
npm i --save cors
Add to your server configuration file the following:
var cors = require('cors'); app.use(cors());
It works for me with 2.8.4 cors version.