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
We set the authentication via Set-Cookie. there's a value in there called key=. That's how we set your password in there. Look in your network requests under /login.
We set the authentication via Set-Cookie. there's a value in there called key=. That's how we set your password in there. Look in your network requests under /login.
I type the vscode-server url in address bar and open it.
After input the password, I can get access to it.
Then every time I open the url, password is not asked.
But, when I put the vscode-server url in a button <a href="http://10.20.30.40:9900" target="_blank">code-server</a>
and click it to open vscode-server, the password is always required.
We set the authentication via Set-Cookie. there's a value in there called key=. That's how we set your password in there. Look in your network requests under /login.
I type the vscode-server url in address bar and open it.
After input the password, I can get access to it.
Then every time I open the url, password is not asked.
But, when I put the vscode-server url in a button <a href="http://10.20.30.40:9900" target="_blank">code-server</a>
and click it to open vscode-server, the password is always required.
As this issue was important for me to be able connect to remote servers using an electron app serving just an URL, I made a workaround, which is made for nginx but could be used with any other reverse proxy I think.
Activity
sr229 commentedon Jan 20, 2020
We set the authentication via
Set-Cookie. there's a value in there calledkey=. That's how we set your password in there. Look in your network requests under/login.ladyrick commentedon Jan 20, 2020
But set-cookie is not so convenient for user to open it directly.
ladyrick commentedon Jan 20, 2020
I type the vscode-server url in address bar and open it.
After input the password, I can get access to it.
Then every time I open the url, password is not asked.
But, when I put the vscode-server url in a button
<a href="http://10.20.30.40:9900" target="_blank">code-server</a>and click it to open vscode-server, the password is always required.
Why is that?
ladyrick commentedon Jan 20, 2020
Solved.
It is because
SameSite=strictaugustin64 commentedon Oct 11, 2022
As this issue was important for me to be able connect to remote servers using an electron app serving just an URL, I made a workaround, which is made for nginx but could be used with any other reverse proxy I think.