code-server icon indicating copy to clipboard operation
code-server copied to clipboard

safari from ipad pro does not working...

Open kd0g opened this issue 7 years ago • 86 comments

i see just blank page.

kd0g avatar Mar 07 '19 15:03 kd0g

Is there a bug report on webkit's bug tracker?

deansheather avatar Jun 30 '19 07:06 deansheather

Yes and it's been floating around for years.

wei avatar Jun 30 '19 07:06 wei

I’m also using an nginx proxy and seeing the black screen. When I remove the proxy I am able to use the app on safari or chrome. With the proxy I see black screen on Safari as well as Chrome. I’m using this nginx file:

server {                                                                                                                                     
    listen 443 ssl;                                                                                                                          
                                                                                                                                             
    server_name mydomain.com                                                                                                                  
                                                                                                                                             
    ssl on;                                                                                                                                  
    ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem;                                                                         
    ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem;                                                                       
    ssl_session_timeout 5m;                                                                                                                  
    ssl_protocols  SSLv2 SSLv3 TLSv1;                                                                                                        
    ssl_ciphers  HIGH:!aNULL:!MD5;                                                                                                           
    ssl_prefer_server_ciphers on;                                                                                                            
                                                                                                                                             
    #prevent 502 bad gateway                                                                                                                 
    #large_client_header_buffers 8 32;                                                                                                       
                                                                                                                                             
    location / {                                                                                                                             
        auth_basic "Restricted Content";                                                                                                     
        auth_basic_user_file /etc/nginx/.htpasswd;                                                                                           
        # prevents 502 bad gateway error                                                                                                     
        proxy_buffers 8 32k;                                                                                                                 
        proxy_buffer_size 64k;                                                                                                               
        # redirect all HTTP traffic to localhost:8443;                                                                                       
        proxy_pass http://localhost:8443;                                                                                                    
        proxy_set_header X-Real-IP $remote_addr;                                                                                             
        proxy_set_header Host $http_host;                                                                                                    
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;                                                                         
        #proxy_set_header X-NginX-Proxy true;                                                                                                
        # enables WS support                                                                                                                 
        proxy_http_version 1.1;                                                                                                              
        proxy_set_header Upgrade $http_upgrade;                                                                                              
        proxy_set_header Connection "upgrade";                                                                                               
        proxy_read_timeout 999999999;                                                                                                        
        proxy_buffering on;                                                                                                                  
    }                                                                                                                                        
}

For the record the authentication via coder also results in a black screen for me on Chrome and Safari

okwme avatar Jun 30 '19 12:06 okwme

@okwme any console errors or network errors under that tab?

wei avatar Jun 30 '19 12:06 wei

Wish i could check for console errors but i'm on an ipad. I've got an app called web Tools but the console it has only prints nonsense:

%x INFO %x%s%c%s

okwme avatar Jun 30 '19 13:06 okwme

Chrome on iOS will behave the same as Safari iOS. HTTP Basic Auth definitely does not work. It works perfectly without it for me. I'm using the latest code-server release

wei avatar Jun 30 '19 13:06 wei

Thanks for the help @wei sounds like my only option is to use the auth supplied by the app. Luckily when I set my certificates manually I no longer see the black screen.

It would be nice to handle my own authentication but I could also live with this option. I'm a little confused how to supply my own password as an option though.. I've created an .env file with PASSWORD=mypassword and run source .env before running the startup command but it does not honor the env variable.

okwme avatar Jun 30 '19 13:06 okwme

The env needs to be specified in the docker run command using -e option so code-server running inside the container can access it.

wei avatar Jun 30 '19 13:06 wei

I'm not using docker but i found the docs that reference it as export PASSWORD="mypassword", thanks for your help!

okwme avatar Jun 30 '19 13:06 okwme

I fixed it by using Let's Encrypt instead of a self signed certificate.

planecore avatar Jun 30 '19 15:06 planecore

Chrome on iOS will behave the same as Safari iOS. HTTP Basic Auth definitely does not work. It works perfectly without it for me. I'm using the latest code-server release

Same for me.

NGarate avatar Jun 30 '19 19:06 NGarate

@NGarate this is beyond the scope of this project. https://bugs.webkit.org/show_bug.cgi?id=80362 I doubt Apple will do anything about it.

wei avatar Jun 30 '19 19:06 wei

@kylecarbs Just close the issue. I doubt it too, nine years and nothing yet.

NGarate avatar Jun 30 '19 21:06 NGarate

I've managed to use in my iPad Pro with iOS 13 without HTTPS by using sudo ./code-server -N -allow-http.

Not recommended, but if you are in a hurry or just trying it out, it is a way

ammichael avatar Jun 30 '19 21:06 ammichael

With iOS13 all is working fine now on IPad Pro. Using under nginx+ Let's encypt, with reverse proxy to localhost http 'code-server' with password authentification.

antlad avatar Jul 01 '19 09:07 antlad

On iPad OS 13 too, just want to clarify: Yes - built-in password authentication works, http basic authentication does not work.

wei avatar Jul 01 '19 10:07 wei

i can get in to the editor but the smart folio / keyboard for the iPad does not work. The arrow keys don’t work, some of the keys like quotes don’t put in the right characters, etc.

Smart keyboard quotes is unrelated to code server. You can fix it by turning off smart punctuations on your iPad.

ChickenKaraage avatar Jul 08 '19 22:07 ChickenKaraage

I'm on iPadOS v13.1.2. It doesn't work for me either. I see a blank grey page, no UI. The same setup works as a charm on the desktop macOS v10.14.6 Safari v13.0.2

satyrius avatar Oct 21 '19 16:10 satyrius

@satyrius are you using a self signed cert? If so, I remember that being the cause of the blank page problem.

coadler avatar Oct 21 '19 17:10 coadler

Also, this issue seems to be from pretty early in the v1 days. As far as I can tell, the two major issues discussed here are now fixed.

The blank page problem is caused by self signed certificates. You can get around this by using LetsEncrypt to generate a trusted certificate. The problem with arrow keys not working were fixed in iPadOS 13.

If I missed anything let me know.

coadler avatar Oct 21 '19 17:10 coadler