danmactough / node-feedparser

Robust RSS, Atom, and RDF feed parsing in Node.js
Other
1.97k stars 192 forks source link

Access-Control-Allow-Origin #147

Closed BrandonMathis closed 8 years ago

BrandonMathis commented 8 years ago

I'm getting a CORS error when I try to pull data from an rss feed.

I'm using browserify. Is that not supported?

Errors XMLHttpRequest cannot load example.com/rss/feed/url No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9000' is therefore not allowed access.
danmactough commented 8 years ago

feedparser doesn't do any http fetching. it just ingests a stream of data. no idea if it can be browserified. however you're fetching the data is where you need to pursue this error.