hensm / fx_cast

Chromecast Web Sender SDK implementation for Firefox
https://hensm.github.io/fx_cast/
MIT License
1.85k stars 62 forks source link

Issue With Cloudflare CAPTCHA on some websites #291

Open silou opened 5 months ago

silou commented 5 months ago

OS version: Windows 10 PRO 22H2 Browser version: Firefox 122.0.1 / 64 Bits Extension version: 0.3.1 Bridge version: 0.3.0

Description Hi, When I turn On the fx_Cast, It seems to break the CAPTCHA on some websites preventing me from accessing them ( a Lot ).

Could you please help me?

Steps to reproduce I have uploaded the small video so you can easily reproduce it : https://drive.google.com/file/d/1iEVMMcyKLkUS6eJaRXIaIXyzsxP1nZNT/view?usp=drive_link

Expected behaviour to pass the Cloudflare security check

Logs Provide any applicable logs here. Info on where to find them is located here.

hensm commented 5 months ago

By default, whitelisted sites are given a Chrome UA string. I guess Cloudflare doesn't like that much. You'll probably have to disable the UA string replacement for these sites.

You might be able to work around this on some sites if they're using an embedded player where you can whitelist the frame URL instead of the top-level URL.

Could be worth adding an option just to inject the UA string into scripts and leave the request headers as is.

silou commented 5 months ago

Hi,

I'll check the settings and do some test. Thank you.