alduin icon indicating copy to clipboard operation
alduin copied to clipboard

Hangs when adding HN rss feed

Open stephen304 opened this issue 6 years ago • 1 comments

I'm trying to add the feed at https://news.ycombinator.com/rss but Alduin just hangs after I press "Add feed". It doesn't seem to happen with other feeds (I can successfully add the C&H feed, although I need to select RSS instead of Atom even though the C&H feed seems to be an atom feed)

stephen304 avatar Apr 25 '18 13:04 stephen304

Looks like a CORS issue.

Alduin is build with Electron. It's basically running a "website-inside-an-application". Everything you see inside the Alduin window is managed and rendered through Chromium.

Alduin calls the fetch function for making a HTTP requests to HN. Chromium treats that call as if it wer coming from a normal client-side browser context, which will trip CORS validation. In this case, Chromium returns an inaccessible - opaque - HTTP response back to Alduin's application code.

See: https://developers.google.com/web/updates/2015/03/introduction-to-fetch?hl=en

netsensei avatar Nov 11 '19 13:11 netsensei

Will be fixed in next release : request are now executed on native side.

Xstoudi avatar Jul 03 '23 22:07 Xstoudi