嘿,伙计们,这里有人用过服务工人吗?因此,我们知道它适用于本地主机或域名与https,我尝试安装让‘’sEncrypt在我的本地计算机上,并添加了自签名证书,但服务工人仍然不能工作
Failed to load resource: net::ERR_INSECURE_RESPONSE
Uncaught (in promise) DOMException: Failed to register a ServiceWorker: An SSL certificate error occurred when fetching the script.
你知道怎么解决这个问题吗?
我尝试使用以下命令更改我的项目的域名
$ set ROOT_URL=http://mixer.example.com:3000
$ meteor
根据输出结果,这似乎是可行的。
=> Started your app.
=> App running at: http://mixer.example.com:3000
Type Control-C twice to stop.
但是我不能在这个地址打开页面,它仍然只在本地主机上打开。我应该怎么做才能解决这个问题?