samuelcarreira / rss-marquee

Scrolling text like the old <marquee> tag with a customizable RSS feed - Simple code written in Vanilla JS
MIT License
7 stars 2 forks source link

CORS Issue #1

Open SEGACD32XMODEL1 opened 1 year ago

SEGACD32XMODEL1 commented 1 year ago

I can't get around the CORS issue. Even your demo has CORS issues.

Juicytronic commented 1 year ago

Same problem here.

liorbp commented 1 year ago

@SEGACD32XMODEL1 I found a pretty good explanation on CORS here: https://stackoverflow.com/questions/43262121/trying-to-use-fetch-and-pass-in-mode-no-cors

TL;DR - The suggestion is to use a CORS proxy which adds CORS headers to the proxied request. You can find such a proxy in the first URL in the list: https://cors-anywhere.herokuapp.com/https://www.buzzfeed.com/world.xml The first part of the URL is the proxy, and the second part is the URL you would like add the missing header.

To use the proxy you would first need to go to the URL and click "Request temporary access to the demo server".

You would probably want to have your own CORS proxy on Heroku or anywhere else. https://github.com/Rob--W/cors-anywhere