Ttrss-api-resize is not requesting image with referer

  • [x] I’m using stock docker compose setup, unmodified.
  • [ ] I’m using docker compose setup, with modifications (modified .yml files, third party plugins/themes, etc.) - if so, describe your modifications in your post. Before reporting, see if your issue can be reproduced on the unmodified setup.
  • [ ] I’m not using docker on my primary instance, but my issue can be reproduced on the aforementioned docker setup and/or official demo.

Some website/CDN checks if the image is requested with correct referer (domain in link to the article , not the link of the feed).

ttrss-api-resize doesn’t seem to set the referer correctly and often get an HTTP forbidden

  • Tiny Tiny RSS version (including git commit id):
  • Platform (i.e. Linux distro, Docker, PHP, PostgreSQL, etc) versions:Docker

https://git.tt-rss.org/fox/ttrss-api-resize.git/tree/init.php#n226

it won’t be hard to implement, i think, just pass referrer to api_resize() method with the URL.

i’ll make a note to take a look at this.

Thanks!

BTW, is there any particular reason why ttrss-api-resize is not shipped in the main repository?

it’s a plugin, that’s why. a long time ago all plugins were bundled, since then i’ve removed a bunch of stock plugins into separate repos. all new plugins also go into separate repos.

fix: pass http referrer when downloading media · 0834b7ad20 - ttrss-api-resize - Tiny Tiny RSS

1 Like

Thanks!! That’s fast!