Code-server: Error loading webview: Service Workers are not enabled in browser. Webviews will not work.

Created on 1 Sep 2020  路  5Comments  路  Source: cdr/code-server

image
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.

Most helpful comment

All 5 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nol166 picture nol166  路  3Comments

avelino picture avelino  路  3Comments

Arsaev picture Arsaev  路  3Comments

infogulch picture infogulch  路  3Comments

pchecinski picture pchecinski  路  3Comments