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
Update security_watchdog.py
Matic Zavadlal96ef89b1f816
diff --git a/browser_use/browser/watchdogs/security_watchdog.py b/browser_use/browser/watchdogs/security_watchdog.pyindex fe74c233c..f65897616 100644--- a/browser_use/browser/watchdogs/security_watchdog.py+++ b/browser_use/browser/watchdogs/security_watchdog.py@@ -128,6 +128,13 @@ class SecurityWatchdog(BaseWatchdog):True if the URL is allowed, False otherwise"""+ # If no allowed_domains specified, allow all URLs+ if (+ not self.browser_session.browser_profile.allowed_domains+ and not self.browser_session.browser_profile.prohibited_domains+ ):+ return True+# Always allow internal browser targetsif url in ['about:blank', 'chrome://new-tab-page/', 'chrome://new-tab-page', 'chrome://newtab/']:return True