mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 21:54:38 +00:00
fix(security): harden browser SSRF defaults and migrate legacy key
This commit is contained in:
@@ -13,8 +13,10 @@ export type BrowserSnapshotDefaults = {
|
||||
mode?: "efficient";
|
||||
};
|
||||
export type BrowserSsrFPolicyConfig = {
|
||||
/** If true, permit browser navigation to private/internal networks. Default: false */
|
||||
/** Legacy alias for private-network access. Prefer dangerouslyAllowPrivateNetwork. */
|
||||
allowPrivateNetwork?: boolean;
|
||||
/** If true, permit browser navigation to private/internal networks. Default: true */
|
||||
dangerouslyAllowPrivateNetwork?: boolean;
|
||||
/**
|
||||
* Explicitly allowed hostnames (exact-match), including blocked names like localhost.
|
||||
* Example: ["localhost", "metadata.internal"]
|
||||
|
||||
Reference in New Issue
Block a user