Unable to login apart from the localhost
Which ZincObserve functionalities are the source of the bug?
login
Is this a regression?
Yes
Description
When running on the local, it always defaults to the hostname for the API calls, even though we have defined the VITE_ZINCOBSERVE_ENDPOINT.
So, on the login page the config API call is made to the actual VITE_ZINCOBSERVE_ENDPOINT. But after that, the login apis are calling the wrong endpoint, the hostname only.
The endpoint value is initialized correctly on the store here. But, it is updated here: https://github.com/zinclabs/zincobserve/blob/main/web/src/App.vue#L28C8-L34
That makes it to fail to access web UI on anything apart from the localhost. So, accessing it over the network or 127.0.0.1 also fails.
It works without issue if we can update/remove the call https://github.com/zinclabs/zincobserve/blob/main/web/src/App.vue#L34 here. Not sure if it has any other implications.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the version you discovered this bug in (check about page for version information)
Version: v0.4.3
Anything else?
No response