I have a.net Wep API service which works fine .When i want to get data from Angularjs App.browser console gave me this error .
getCurrentFeed() :Observable<Tweet[]>{
return this.http.get('http://localhost:6010/GetTweets').map((resp :Response)=>{
console.log(resp.json());
var fetchedTweets=[];
for(let tweet of resp.json().data)
{
fetchedTweets.push(this.getTweetFromJson(tweet));
}
return fetchedTweets as Array<Tweet>;
});
}
XMLHttpRequest cannot load http://localhost:6010/GetTweets. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access. error_handler.js:54 EXCEPTION: Response with status: 0 for URL: null