Electron-Vue axios 发送 Get 请求时报错 net::ERR_INSECURE_RESPONSE

问题原因:SSL/TLS 证书验证导致的。

解决方案:在 src/main/index.js 中添加相关配置,忽略证书相关的错误。

app.commandLine.appendSwitch('ignore-certificate-errors')

如下图所示:

  

    

原文地址:https://www.cnblogs.com/dhqy/p/14104030.html