Closed laiquziru closed 4 months ago
Can you provide more information on your setup and describe your expected outcome in details?
same to me (pay attention to my access address):
then I tried to set host: 127.0.0.1:65210 a.editor.localhost
,it works.
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
)
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 examplehttp://0.0.0.0:65210
)
nice!bro!!
Is there an existing issue for this?
OS/Web Information
code-server --version
: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