
when I want to install a extension i just got this:
Error loading webview: Service Workers are not enabled in browser. Webviews will not work.
@codeoflin https://developer.mozilla.org/zh-CN/docs/Web/API/Service_Worker_API/Using_Service_Workers
must https
Thanks
Wait, I have the same issue and wasn't able to find how you can fix it in the linked document. @pavlelee @codeoflin Can you explain a bit more about how you resolved this issue?
Edit: since you commented "must https" I searched for how to run code-server over https and found #1548, but there seems to be no available solution yet (at least in Chrome).
Edit 2: Nevermind, #1048 also discusses using code-server over https. Guess I'll just try to get https working.
https://github.com/cdr/code-server/blob/v3.5.0/doc/guide.md#lets-encrypt may be of use. Caddy is a pretty painless way to get HTTPS going assuming you have a domain name.
Hello , may i ask for clarification
I am running code-server from my VPS (Ubuntu/1gb) and i get this message.
I run it like this http://mysite.com:9999
if i switch to
https://mysite.com:9999 will extensions work and for example have .net core extensions running so i can debug and run .net core applications
Edit : I can confirm that caddy works fine
take note that you should clear completely the Caddyfile and place exactly what is documented.
If you want to redirect the https to another port
YourDomain:8081
reverse_proxy 127.0.0.1:8080
er port
Most helpful comment
@codeoflin https://developer.mozilla.org/zh-CN/docs/Web/API/Service_Worker_API/Using_Service_Workers
must https