I’m running a reverse proxy using IIS, and this fixed this issue for me: reverse proxy - IIS does not set X-FORWARDED-HOST - Server Fault
I know this thread is old, but I still can’t use Studio Code Server outside of my local network with NGNIX. I’ve read a bunch but it seems that NGNIX apparently pushed a fix long ago but I’m still having issues.
Prior to the “fix”, one was supposed to add the following, but I’m unclear where.
proxy_set_header X-Forwarded-Host $http_host;
