lxdware / lxd-dashboard

This LXD dashboard is a web-based user interface (GUI) for managing containers and virtual machines through LXD
https://lxdware.com
GNU Affero General Public License v3.0
310 stars 37 forks source link

Unfriendly error message when unauthenticated #39

Open vosdev opened 2 years ago

vosdev commented 2 years ago

When I visit the dashboard with a deep url like such: https://lxd.example.com/containers.php?remote=1&project=default

I get a javascript popup stating:

Unable to connect to remote host. HTTP status code: undefined

image

Followed by a redirect to the login page.

I think it's more friendly to have the redirect happen right away and not show the pop-up

matthewalanpenning commented 2 years ago

I am seeing that Firefox is doing the redirect automatically on my setup, but Chrome is giving me this message. I am guessing that you were using Chrome. I will look at updating this.