Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Update default cross-origin iframe setting to True for improved support

Magnus Müllera0dd0c99a75f
diff --git a/browser_use/browser/profile.py b/browser_use/browser/profile.py
index 9f00f5dfb..40faf0d3d 100644
--- a/browser_use/browser/profile.py
+++ b/browser_use/browser/profile.py
@@ -587,7 +587,7 @@ class BrowserProfile(BrowserConnectArgs, BrowserLaunchPersistentContextArgs, Bro
description='Window position to use for the browser x,y from the top left when headless=False.',
)
cross_origin_iframes: bool = Field(
- default=False,
+ default=True,
description='Enable cross-origin iframe support (OOPIF/Out-of-Process iframes). When False, only same-origin frames are processed to avoid complexity and hanging.',
)