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
This worked for me.
app.get('/', function (req, res) { res.header("Access-Control-Allow-Origin", "*"); res.send('hello world') })
You can change * to fit your needs. Hope this can help.