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 False for enhanced security and performance

Magnus Müller77eeed5cf022
diff --git a/browser_use/browser/profile.py b/browser_use/browser/profile.py
index 40faf0d3d..9f00f5dfb 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=True,
+ default=False,
description='Enable cross-origin iframe support (OOPIF/Out-of-Process iframes). When False, only same-origin frames are processed to avoid complexity and hanging.',
)