| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
For anyone using nginx as a reverse proxy, here is the exact line you need to add to your config. Assumptions:
# /etc/nginx/conf.d/code-server.conf, or wherever you have the reverse proxy config
server {
listen 22222 ssl;
ssl_certificate /etc/ssl/certs/YOUR_CERT_HERE.crt;
ssl_certificate_key /etc/ssl/private/YOUR_KEY_HERE.key;
location / {
proxy_pass http://127.0.0.1:11111;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
+ proxy_set_header Host "your-domain.example.com:22222";
}
}Then reload the config: nginx -s reload and it should work again. |
|
I got exactly the same error. The configuration of my reverse proxy (nginx/swag) hasn't changed. Host is/was already set. I'm using the linuxserver.io images. The regression happened from |
|
Anyone has settings for apache? |
|
same here 4.10.0 works and 4.10.1 does not. pinning to 4.10.0 until this is sorted. |
|
Might need to use $http_host instead: #6166 |
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
{{title}}
Uh oh!
There was an error while loading. Please reload this page.
Code v1.75.1
Security
Added an origin check to web sockets to prevent cross-site hijacking attacks on
users using older or niche browser that do not support SameSite cookies and
attacks across sub-domains that share the same root domain.
The check requires the host header to be set so if you use a reverse proxy
ensure it forwards that information otherwise web sockets will be blocked.
This discussion was created from the release v4.10.1.