WebViews do not load with https and self signed certificates #3757
Replies: 4 comments 9 replies
-
My suggestion: Please let the serviceworker work without a proper cert if possible. DO I need to use some reverse-proxy complicated stuffs for this, please help me out, and I have no knowledge about reverse proxies 😔, if someone has a guide for this, would be helpful too. |
Beta Was this translation helpful? Give feedback.
-
Hmm...let's see if we can figure this out together.
First things first. If you switch to the current version of Chrome (instead of Beta), does it work as expected? |
Beta Was this translation helpful? Give feedback.
-
@jsjoeio I have been very clear with my problem, and I tried with Chrome stable too, however, there is no change at all. This issue is worrying me a lot, the webviews in code-server is not working. I googled and came up with this solution to ignore certificate errors, and this is the command.
Please guide me how do I locally host code-server and still not have issues like this, if you have any guide, then that might help me. Thank you for the zero-day quick response! |
Beta Was this translation helpful? Give feedback.
-
A guide on how-to setup this stuff would be greatly appreciated at least by me. I am having the same error. "https" is a big pain for people in a local domain like me. A big reason to set up a local domain is security. The rule is never give apps more permission that what it need, If we don't need the Internet to do our thing, why do we demand to connecting to it? One things that really bug me is that the a real big push to put everything on-line without concern for those who don't want to. I feel I am out of options here. |
Beta Was this translation helpful? Give feedback.
-
I use dockerized
code-server
and this is my docker run command I use every time to spin a container.This error is also mentioned in #3410 but my problem is a bit different I guess. Please help me @jsjoeio @code-asher @oxy with this.
Everything works as it should but the webviews do not work at all in Chrome. I did open code-server web ui on Firefox and the webviews do load but in Chrome i have no luck. Why is this so.
For the time being also, Firefox is not the solution, because firefox do not have clipboard access facility to paste text from clipboard into the code-server integrated terminal. I am sharing relevant screenshots to have a better picture of this thing.
Just for your information, I am using the latest Chrome Beta to use code-server.

This might be a self signed certificate thing i guess, and this is the command that i used to generate a Self Signed cert to use code-server in LAN
Error on Chrome
Screenshots from Firefox
Just observe that the service worker is registered which was not in Chrome and the WebViews load successfully.
Before you ask for code-server logs, I am mentioning them below, seems like pretty clean to me at least showing no errors

and this is my
config.yaml
file that I use to serve code-serverBeta Was this translation helpful? Give feedback.
All reactions