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
feat: add support for ignoring HTTPS certificate errors (#93)
* feat: add support for ignoring HTTPS certificate errors
* fix: update warning message for already running daemon to include ignore HTTPS errors option
* docs: add documentation for --ignore-https-errors option in README and SKILL.md
* feat: initialize ignore_https_errors flag in command context
* fix: change launch_cmd to mutable for cdp value handling
eprintln!("{} --ignore-https-errors ignored: daemon already running. Use 'agent-browser close' first to restart with this option.", color::warning_indicator());
243
+
}
238
244
}
239
245
240
246
// Validate mutually exclusive options
@@ -261,7 +267,7 @@ fn main() {
261
267
// Connect via CDP if --cdp flag is set
262
268
// Accepts either a port number (e.g., "9222") or a full URL (e.g., "ws://..." or "wss://...")
263
269
ifletSome(ref cdp_value) = flags.cdp{
264
-
let launch_cmd = if cdp_value.starts_with("ws://")
270
+
letmutlaunch_cmd = if cdp_value.starts_with("ws://")
265
271
|| cdp_value.starts_with("wss://")
266
272
|| cdp_value.starts_with("http://")
267
273
|| cdp_value.starts_with("https://")
@@ -317,6 +323,10 @@ fn main() {
317
323
})
318
324
};
319
325
326
+
if flags.ignore_https_errors{
327
+
launch_cmd["ignoreHTTPSErrors"] = json!(true);
328
+
}
329
+
320
330
let err = matchsend_command(launch_cmd,&flags.session){
0 commit comments