Skip to content

Use tumblr API instead of RSS feed which requires CORS to avoid flaky api.allorigins.win#207

Merged
pgleeson merged 1 commit intoopenworm:developmentfrom
weng271190436:weiweng/replace-flaky-api-allorigins-win
Apr 16, 2026
Merged

Use tumblr API instead of RSS feed which requires CORS to avoid flaky api.allorigins.win#207
pgleeson merged 1 commit intoopenworm:developmentfrom
weng271190436:weiweng/replace-flaky-api-allorigins-win

Conversation

@weng271190436
Copy link
Copy Markdown
Contributor

investigated #202

The root cause is flaky api.allorigins.win, which is required for CORS because we are reading Tumblr posts from RSS feed

Below image shows the real cause of "Unable to load news feed. Network or CORS error" - api.allorigins.win returns 500+ HTTP status code. The solution here is to replace the RSS feed with API call https://openworm.tumblr.com/api/read/json?num=6 which doesn't require CORS so no dependency on api.allorigins.win

image

Comment thread js/main.js
} else if (loc === '/donate.html') {
loadDonationControls();
} else if (loc === '/news.html') {
loadFullNewsFeed();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to fix news feed not loaded when navigated from a different page. pjax page navigation goes through this code path

@pgleeson pgleeson merged commit 6d140f5 into openworm:development Apr 16, 2026
@pgleeson
Copy link
Copy Markdown
Member

Looks like this has fixed it, thanks @weng271190436!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants