From fcad5c637a7b357179954ebdfb380b327e7b2441 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 13 Feb 2023 15:32:31 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20chrome=20https=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E5=BF=BD=E7=95=A5=E8=AF=81=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/applets/chrome/app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/terminal/applets/chrome/app.py b/apps/terminal/applets/chrome/app.py index 8fbe0241f..6a2f678b5 100644 --- a/apps/terminal/applets/chrome/app.py +++ b/apps/terminal/applets/chrome/app.py @@ -162,6 +162,12 @@ def default_chrome_driver_options(): options.add_argument("start-maximized") # 禁用 扩展 options.add_argument("--disable-extensions") + # 忽略证书错误相关 + options.add_argument('--ignore-ssl-errors') + options.add_argument('--ignore-certificate-errors') + options.add_argument('--ignore-certificate-errors-spki-list') + options.add_argument('--allow-running-insecure-content') + # 禁用开发者工具 options.add_argument("--disable-dev-tools") # 禁用 密码管理器弹窗