You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
addon-vscode v5.5.3 includes code-server v4.10.1. code-server v4.10.1 added a new security check for websockets. The default proxy setup using the NGinx Proxy Manager is not compatible with this check and causes the addon-vscode to not fully load
Expected behavior
Proxy server should properly send the x-forwarded-host header to the backend server by default the same way it does for x-forwarded-for.
Actual behavior
x-forwarded-host header is missing from proxy_set_header setup
Steps to reproduce
Setup both vscode and nginx-proxy-manager addons and follow default NGinx proxy configuration. Then go to secured port and try to load vscode in HA
Proposed changes
I was able to fix this issue by adding this configuration to the advanced configuration of my proxy setup as a workaround:
location / {
# Needed to workaround VSCode Web Socket Origin error
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-Host $http_host;
Problem/Motivation
Expected behavior
Actual behavior
Steps to reproduce
Proposed changes
The text was updated successfully, but these errors were encountered: