coder / code-server

VS Code in the browser
https://coder.com
MIT License
67.59k stars 5.54k forks source link

[Bug]: 内网搭建一个code-server没有证书,通过ip地址访问无法使用jupyter和markdown等功能,喜欢自己能选择。 #6627

Closed laiquziru closed 4 months ago

laiquziru commented 8 months ago

Is there an existing issue for this?

OS/Web Information

Steps to Reproduce

1. 2. 3.

Expected

1

Actual

11

Logs

No response

Screenshot/Video

No response

Does this issue happen in VS Code or GitHub Codespaces?

Are you accessing code-server over a secure context?

Notes

No response

kLiHz commented 8 months ago

Can you provide more information on your setup and describe your expected outcome in details?

zidoshare commented 7 months ago

same to me (pay attention to my access address):

image

then I tried to set host: 127.0.0.1:65210 a.editor.localhost,it works.

image
code-asher commented 7 months ago

Yeah that functionality uses service workers, and browsers only allow service workers in a secure context, which generally means you need localhost or a domain name and certificate.

But, it is possible to bypass this, for example in Chrome you can use chrome://flags/#unsafely-treat-insecure-origin-as-secure and enter the IP address (for example http://0.0.0.0:65210)

zhaowendao30 commented 4 days ago

Yeah that functionality uses service workers, and browsers only allow service workers in a secure context, which generally means you need localhost or a domain name and certificate.

But, it is possible to bypass this, for example in Chrome you can use chrome://flags/#unsafely-treat-insecure-origin-as-secure and enter the IP address (for example http://0.0.0.0:65210)

nice!bro!!