[winswitch] Xpra HTML5 Post example.

Antoine Martin antoine at nagafix.co.uk
Mon Feb 1 04:00:12 GMT 2021


On 01/02/2021 03:15, w robbi via shifter-users wrote:
> Been trying to get post to work and not able to find the right information
> to pass.  Is there an example somewhere?
> https://xpra.example.com/?username=user&password=pass1
> 
> <form action="http://xpra.example.com/index.html" method="get">
>   <label for="username">Username:</label>
>   <input type="text" id="username" name="username"><br><br>
>   <label for="password">Password:</label>
>   <input type="text" id="password" name="password"><br><br>
>   <button type="submit">Xpra with GET</button>
>   <button type="submit" formmethod="post">Xpra with POST</button>
> </form>
Your example works for me with Google Chrome as long as I use https to
connect.
It looks like a browser security feature is removing passwords over
unencrypted Internet connections. I did not investigate further.

Another, even safer solution would be to change your login form to
replicate what xpra's connection dialog does and not use GET or POST at
all for sending the configuration options.
You can place the options in the browser's "sessionStorage" area using
Javascript and the password will never be sent across the Internet.

Cheers,
Antoine



More information about the shifter-users mailing list