I have this simple api request which returns an observable to an object which has a bunch of items in it and in every item there is a link. So i wanted to directly fetch the data behind the link in my current async stream but i get a CORS error saying:
Access to XMLHttpRequest at 'https://orf.at/stories/3146336/' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Is this even possible with my current fetchOrfFeed()
function?
Or did I missunderstood some basic concept?
public fetchOrfFeed(): Observable<any> {
return this.http.get<OrfFeed>('https://api.rss2json.com/v1/api.json?rss_url=https://rss.orf.at/news.xml')
.pipe(mergeMap(feed => feed.items))
.pipe(mergeMap(item => this.http.get<string>(item.link)));
}