Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
enable cross-origin-iframes
Nick Sweeting9341269f865c
diff --git a/browser_use/browser/profile.py b/browser_use/browser/profile.pyindex cdd878117..6922bccfc 100644--- a/browser_use/browser/profile.py+++ b/browser_use/browser/profile.py@@ -606,7 +606,7 @@ class BrowserProfile(BrowserConnectArgs, BrowserLaunchPersistentContextArgs, Brodescription='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.pyindex 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 = Trueclass DomService: