RSSNext / Follow

🧡 Next generation information browser.
https://follow.is
GNU General Public License v3.0
15.95k stars 676 forks source link

Inconsistent UA behavior between Electron and browser prevents access to feed's images. #355

Closed YukiCoco closed 1 month ago

YukiCoco commented 1 month ago

Describe the bug

Due to the Electron's default User-Agent containing Electron/32.0.2 and Follow/0.0.1-alpha.10 , we are unable to access certain websites with anti-crawling policies. Should we align the Electron's User-Agent with the browser? Before:

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Follow/0.0.1-alpha.10 Chrome/128.0.6613.84 Electron/32.0.2 Safari/537.36

image After:

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.84 Safari/537.36

image

Feed Info

NSFW: https://rsshub.app/javdb/rankings

Reproduction Video

No response

App Type

Electron / App

Version

0.0.1-alpha.10

Operating System

Linux

Browser Info

No response

Validations

Contributions

linear[bot] commented 1 month ago

FOL-115 Inconsistent UA behavior between Electron and browser prevents access to feed's images.