fix: load plain-http URLs behind a Cloudflare challenge

Firefox's HTTPS-First mode upgrades an http:// navigation, sees the
challenge's 403 and falls back to http as a fresh navigation. That
aborts page.goto() with "interrupted by another navigation", so any
http:// URL to a challenged site failed before the solver could run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ThePhaselessandClaude Opus 5.5 committed 2026-10-07 00:00:12 +02:00
1 parent ac7876d0d5
commit 4e4340dccd
2 files changed
+2

No files matched your search

+1
View File
@@ -102,6 +102,7 @@ async def get_browser(
"devtools.jsonview.enabled": False,
"browser.tabs.remote.useCrossOriginOpenerPolicy": False,
"browser.tabs.remote.useCrossOriginEmbedderPolicy": False,
"dom.security.https_first": False,
},
) as browser_raw:
# InvisiblePlaywright yields a Browser instance