Skip to content

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

enable cross-origin-iframes

Nick Sweeting9341269f865c
diff --git a/browser_use/browser/profile.py b/browser_use/browser/profile.py
index cdd878117..6922bccfc 100644
--- a/browser_use/browser/profile.py
+++ b/browser_use/browser/profile.py
@@ -606,7 +606,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 (default), only same-origin frames are processed to avoid complexity and hanging.',
)
diff --git a/browser_use/dom/service.py b/browser_use/dom/service.py
index bae957f9c..86e8a896b 100644
--- a/browser_use/dom/service.py
+++ b/browser_use/dom/service.py
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
# TODO: enable cross origin iframes -> experimental for now
-ENABLE_CROSS_ORIGIN_IFRAMES = False
+ENABLE_CROSS_ORIGIN_IFRAMES = True
class DomService: