如何绕过Chrome证书验证

时间:2018-09-25 17:14:02

标签: angular ssl ssl-certificate

如何忽略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"
        ]
      }
    }

0 个答案:

没有答案