You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -268,6 +268,14 @@ The Chrome DevTools MCP server supports the following configuration option:
268
268
Path to a file to write debug logs to. Set the env variable `DEBUG` to `*` to enable verbose logs. Useful for submitting bug reports.
269
269
-**Type:** string
270
270
271
+
-**`--allowedOrigins`**
272
+
Semicolon-separated list of origins the browser is allowed to request. If not specified, all origins are allowed (except those in blockedOrigins). Example: https://example.com;https://api.example.com
273
+
-**Type:** string
274
+
275
+
-**`--blockedOrigins`**
276
+
Semicolon-separated list of origins the browser is blocked from requesting. Takes precedence over allowedOrigins. Example: https://ads.example.com;https://tracker.example.com
277
+
-**Type:** string
278
+
271
279
<!-- END AUTO GENERATED OPTIONS -->
272
280
273
281
Pass them via the `args` property in the JSON configuration. For example:
Copy file name to clipboardExpand all lines: src/cli.ts
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,16 @@ export const cliOptions = {
54
54
describe:
55
55
'Path to a file to write debug logs to. Set the env variable `DEBUG` to `*` to enable verbose logs. Useful for submitting bug reports.',
56
56
},
57
+
allowedOrigins: {
58
+
type: 'string'asconst,
59
+
describe:
60
+
'Semicolon-separated list of origins the browser is allowed to request. If not specified, all origins are allowed (except those in blockedOrigins). Example: https://example.com;https://api.example.com',
61
+
},
62
+
blockedOrigins: {
63
+
type: 'string'asconst,
64
+
describe:
65
+
'Semicolon-separated list of origins the browser is blocked from requesting. Takes precedence over allowedOrigins. Example: https://ads.example.com;https://tracker.example.com',
0 commit comments