Open ak2766 opened 7 years ago
Can you try to enable the "Send XHR with credentials" option, and try again?
Hi,
I can confirm this issue. I tried hours to get in up and running with firefox and LXD 2.0.10 (Ubuntu 16.04) . I did it all correctly. It failed due to missing lxc setting for credentials. I tried Ubuntu 17.04 (LXD 2.12). I could access API and settings page and only when XHR disabled so that it did not display an error. But nothing else worked. Despite using client certificate and API (:9000) saying "trusted", lxd log said:
ip=192.168.xx.xx:54976 lvl=warn msg="rejecting request from untrusted client" t=2017-09-15T13:59:29+0200
I confirmed certs were in trust store. Then I found this thread here and tried to open it with Chromium (imported the same certificate as in firefox) and guess what: It worked all the time and only FireFox was misbehaving.
In FireFox, "Test LXD" worked, but "Test LXD Auth" did not. Furthermore, "Settings for LXD" will not show attributes. In Chromium all works fine! Same server, but different browsers, both with same user certificate.
Chromium: FireFox:
Seems to be a "browser issue". I can provide more (system) info on this issue if needed.
FireFox 55.0.2 (64-Bit) on Linux Mint 18.2 Chromium 60.0.3112.113 (Developer Build)
Enabling XHR does not work with FireFox imho. Adjust URL, press save, press "Test LXD": Fail.
Same situation with FireFox 55.0.3 (64-Bit) on Windows 10 (Home)
Works on Version 61.0.3163.79 (Official Build) Built on Ubuntu , running on LinuxMint 18.2 (64-bit)
System: Ubuntu 16.04.2 LTS
FYI: Works well on Chrome. However my browser of choice is Firefox; hence I'd like it to work there too.
However, no matter what I do, "Test LXD auth" always fails on Firefox:
Chrome give me this:
Clicking "Open LXD Url in new tab" gives me this (exactly what I see in Chrome too):