rmkubik / sick-picks

An aggregation of the Sick Picks listed on Syntax.fm

Home Page:http://sick-picks.netlify.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RSS-Parser breaks on Safari due to User-Agent header in fetch request

rmkubik opened this issue · comments

Reproduction

  • load the site in mobile or desktop Safari

Observe the following console errors:

[Error] Request header field User-Agent is not allowed by Access-Control-Allow-Headers.
[Error] Fetch API cannot load https://feed.syntax.fm/rss due to access control checks.
[Error] Failed to load resource: Request header field User-Agent is not allowed by Access-Control-Allow-Headers. (rss, line 0)
[Error] Unhandled Promise Rejection: TypeError: Request header field User-Agent is not allowed by Access-Control-Allow-Headers.
	dispatchException (sick-picks.e31bb0bc.js:7854)
	invoke (sick-picks.e31bb0bc.js:7576)
	asyncGeneratorStep (sick-picks.e31bb0bc.js:23675:104)
	_throw (sick-picks.e31bb0bc.js:23677:310)
	promiseReactionJob