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
no logs from code-server. But a problem description
The logout request is done using an HTTP GET /code/logout?base=/code.
The 'base' parameter is sent using the query, however the logout service awaits the base parameter in the request body. The problem can be removed either by checking the base parameter in the query or using HTTP POST parameters when making the logout request.
OS/Web Information
code-server --version
: 3.10.2 387b12eSteps to Reproduce
your.ssl.domain/code/* {
uri strip_prefix /code
reverse_proxy 127.0.0.1:5080
}
bind-addr: 127.0.0.1:5080
auth: password
password: secret
cert: false
Expected
redirection to login page
Actual
code-server reopens
Logs
no logs from code-server. But a problem description
The logout request is done using an HTTP GET /code/logout?base=/code.
The 'base' parameter is sent using the query, however the logout service awaits the base parameter in the request body. The problem can be removed either by checking the base parameter in the query or using HTTP POST parameters when making the logout request.
https://github.com/cdr/code-server/blob/4bb7a8ddb9b75c6f99f44454a0217fbe6942824d/src/node/routes/logout.ts#L11
actually, changing 'body' to 'query' in the file /usr/lib/code-server/out/node/routes/logout.js and restarting code-server fixes the problem
Screenshot
none to be provided
Notes
This issue can be reproduced in VS Code: No
The text was updated successfully, but these errors were encountered: