【发布时间】:2015-01-12 04:53:26
【问题描述】:
当我尝试使用 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
【问题讨论】:
-
我的猜测是您的浏览器阻止了没有证书的 https 域。
-
您是否启用了 CORS? @Rodislav 你能添加你的 ajax 调用吗?
-
看来这个答案解决了问题:stackoverflow.com/questions/24504827/…
标签: jquery ajax https node-webkit