Skip to content

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

this is not an error, just warning

mertunsalla5b97a6cf4a2
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index 467e72804..36d7ed02b 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -407,7 +407,7 @@ class Agent(Generic[Context, AgentStructuredOutput]):
# If no allowed_domains are configured, show a security warning
if not self.browser_profile.allowed_domains:
- self.logger.error(
+ self.logger.warning(
'⚠️ Agent(sensitive_data=••••••••) was provided but Browser(allowed_domains=[...]) is not locked down! ⚠️\n'
' ☠️ If the agent visits a malicious website and encounters a prompt-injection attack, your sensitive_data may be exposed!\n\n'
' \n'