O
O
Oleg Agapov2017-03-02 17:41:54
JavaScript
Oleg Agapov, 2017-03-02 17:41:54

How to get RSS in JSON?

I'm trying to get data from here pitchfork.com/rss/news
Browser opens fine.
I'm trying to get this feed with jQuery ajax. I get a CORS error (XMLHttpRequest cannot load pitchfork.com/rss/news . No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' localhost:5000 ' is therefore not allowed access.)
Googling leads to numerous examples where the google service reader is used, which processed rss into json. But, as I understand it, this service was closed and other ways need to be found.
Tell me, can anyone find a way out of the situation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pushkarev, 2017-03-02
@oleg_agapov

Run xml through your server and return json. Access-Control-Allow-Origin you will not be able to bypass because. politics forbids this and no loophole can be found

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question