使用 fetch 时,(javascript) 共享工作人员是否记得对 https 自签名证书的信任?
我有一个系统,您可以在其中启用 https 请求,但这将提供自签名证书,并且我正在尝试编写 JavaScript 共享工作程序,在正常的 http 上下文中它工作正常。如果我启用 https,则工作线程中的提取会失败,并在开发人员控制台中显示以下状态:
(failed)net::ERR_INSECURE_RESPONSE
。
我在浏览器中启用了“允许不安全内容”,因为错误表明响应不安全,但这没有帮助。
有一个 setInterval 正在运行提取,但上下文应该是正确的。
工作人员知道自签名证书的推力吗?或者这里还有其他问题吗?
I have a system with where you can enable https for request but this will serve a self-signed certificate and I'm experimenting with writing a JavaScript shared worker, in normal http context it works fine. If I enable https then the fetch in the worker fails with a this status in the developer console:
(failed)net::ERR_INSECURE_RESPONSE
.
I enabled "allow insecure content" in my browser, since the error says the response is insecure, but that did not help.
There is a setInterval running the fetch but the context should be correct.
Do workers know about thrust for for self signed certs? or is there something else that is going wrong here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论