如何忽略Chrome中的证书,以避免出现错误
net :: ERR_CERT_AUTHORITY_INVALID
我正在使用Karma.conf.js。
我尝试声明如下,但仅在Firefox中有效
capabilities: {
browserName: "firefox",
marionette: true,
acceptInsecureCerts: true
},
capabilities: {
browserName: "Chrome",
chromeOptions: {
args: [
"--allow-insecure-localhost",
"--headless",
"no-sandbox",
"--disable-browser-side-navigation",
"--test-type",
"--ignore-ssl-errors=true"
]
}
}