Skip to content

Commit 4777a64

Browse files
committed
Revert disableMitm - Hero requires MITM for page load detection
1 parent a0230db commit 4777a64

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

src/browser/hero-config.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,13 @@ export function createHeroConfig(options: HeroConfigOptions = {}): any {
4242
showChrome: options.showChrome ?? false,
4343

4444
// ============================================================================
45-
// MITM proxy disabled
46-
// ============================================================================
47-
// Real Chrome already produces correct TLS fingerprints. Hero's MITM proxy
48-
// intercepts and re-encrypts traffic which Cloudflare detects as non-standard.
49-
// Disabling MITM lets Chrome handle TLS directly - more reliable for modern
50-
// anti-bot systems. Stealth emulation scripts (webdriver=false, navigator
51-
// spoofing, WebRTC masking) still work without MITM.
52-
disableMitm: true,
45+
// TLS fingerprint emulation via MITM (required)
46+
// ============================================================================
47+
// Hero requires MITM for page load detection (waitForLoad, waitForPaintingStable
48+
// depend on MITM tracking network requests). Disabling MITM causes all
49+
// navigations to hang because Hero can't detect when loading completes.
50+
// For sites where MITM causes Cloudflare issues, use browser sessions instead.
51+
disableMitm: false,
5352

5453
// ============================================================================
5554
// Session management

0 commit comments

Comments
 (0)