在从node-webkit进行ajax请求时,jquery – net :: ERR_INSECURE_
发布时间:2020-12-16 03:06:35 所属栏目:百科 来源:网络整理
导读:当我试图用 jquery来做ajax请求时: https://localhost:8443/uri 我得到这个错误: net::ERR_INSECURE_RESPONSE 我使用自签名证书,在package.json我有这些参数: "chromium-args": "--ignore-certificate-errors --auth-schemes='basic --auth-server-whitel
当我试图用
jquery来做ajax请求时:
https://localhost:8443/uri 我得到这个错误: net::ERR_INSECURE_RESPONSE 我使用自签名证书,在package.json我有这些参数: "chromium-args": "--ignore-certificate-errors --auth-schemes='basic --auth-server-whitelist='*localhost:8443' --auth-negotiate-delegate-whitelist='*localhost:8443'''", 有没有人知道如何将自签名证书添加到node-webkit的信任库! 操作系统:ubuntu 14.10
这里的问题是浏览器阻止对该服务器的调用,因为该服务器的证书无效.由于它是一个localhost服务器,它是一个
self-signed certificate.最好的方式来解决这个是尝试以下之一…
>更改localhost:8443服务器使用valid certificate (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |