mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-14 04:38:35 +00:00
fix(browser): unify SSRF guard path for navigation
This commit is contained in:
@@ -65,10 +65,12 @@ export function registerBrowserAgentSnapshotRoutes(
|
||||
targetId,
|
||||
feature: "navigate",
|
||||
run: async ({ cdpUrl, tab, pw }) => {
|
||||
const ssrfPolicy = ctx.state().resolved.ssrfPolicy;
|
||||
const result = await pw.navigateViaPlaywright({
|
||||
cdpUrl,
|
||||
targetId: tab.targetId,
|
||||
url,
|
||||
...(ssrfPolicy ? { ssrfPolicy } : {}),
|
||||
});
|
||||
res.json({ ok: true, targetId: tab.targetId, ...result });
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user