-
Notifications
You must be signed in to change notification settings - Fork 5.9k
HTTPS Blank Screen / Disconnected iPadOS #1596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I believe the problem is that WebSockets don't work on iPad with a self signed certificate. That's why you can access the login screen but not actually use code-server. cc @code-asher |
Might be a bug we should report to apple. |
Yeah that's my understanding as well. I wonder if when you choose to allow the browser to access an insecure site that choice just isn't applied to websockets for some reason. |
Thank you both for replying. Other users in #1566 report that using a self-signed certificate with iOS should be possible provided that it’s created with the proper settings. I have found contradicting reports online about the topic and some of them are years old. I will try what described in that issue and if it doesn’t work I’ll close the issue. |
Sounds good. |
Lets just use #1566 for this. |
@nhooyr I would request to reopen the issue and potentially rename it. I am now able to connect and see/interact with the editor 100% of the times but after a few seconds the editor reads "Disconnected from...." at the bottom and everything stops working. I believe this might be a separate issue from the blank screen/certificate one. If you think it's better I can also open a new issue. |
Hmm, a self signed certificate for you works now? If so, please open a new issue indeed! |
Yea, I mean, the blank/white screen issue is kinda weird and it doesn’t happen at least when I login the first time. Anyway I’ll try to do a screen recording in the next day if I have some time and show you in a new issue. |
having the same problem "Disconnected from" as you described, have u solved that? thanks in advance |
@Yosemitebear, didn't solve it and gave up on the project. |
This is in fact solved. See the docs at https://github.com/cdr/code-server/blob/v3.8.0/doc/ipad.md#how-to-access-code-server-with-a-self-signed-certificate-on-ipad |
I am trying to run code-server (as npm package) on a Raspberry Pi and accessing it from LAN on an iPad.
This same setup works correctly if I try to access the editor via browser on my laptop.
This happens on an actual iPad running iPadOS 13.4.1, if I try to visit the website from Mac using the iPad User Agent (as described here) everything works normally.
I am fairly confident it's not a certificate issue as the certificate, while being self-signed has been created, installed and trusted according to what described in issue #1566, and ultimately according to Apple's own requirements for certificates; as a matter of fact, if I visit other websites on the same host via HTTPS I don't get any security notice.
I have tried both with
--auth password
and--auth none
and there are slight differences but none of the two works. In the case of custom password I am able to reach the login screen but once logged in I get to a blank screen.In the case of no password I am instead able to load the editor but after a few milliseconds the host appears to disconnect (the green bar at the bottom left reads: Disconnected:....).
I have also tried with different combinations of
--bind-addr
with values:127.0.0.1
,0.0.0.0
and192.168.1.84
(local address of the Raspberry Pi). Likewise, I have also tried to not set up any certificate and use a reverse proxy with NGINX but that also didn't work.The only configuration that seems to load on iPadOS is without HTTPS and without reverse proxy but in that case the editor is pretty useless as the clipboard is disabled.
I have scoured the repository for similar issues (and the subreddit) but I have only found partial and contradicting info.
Below the log traces, I would really appreciate your help and I am willing to do any test needed.
stdout:
log:
The text was updated successfully, but these errors were encountered: