Fresh desktop install cannot connect to any servers
codevski opened this issue · 17 comments
Description
So I have a docker selfhosted instance which works fine in the browser but when I try to setup desktop app I cannot seem to get it to connect. I have also tried connecting to official (saw someone say to test it regarding another issue someone was having and I still cannot connect.
Vikunja Version
"v0.23.0"
Browser and version
Desktop: Both Flatpak and AUR bin 0.23.0-1
Can you reproduce the bug on the Vikunja demo site?
No
Screenshots
Can you check what the API response is when you set the url? (CTRL+Shift+I and then "network")
Let me check. It stopped working, when I updated from the seperate frontend/backend containers to the new integrated one.
As mentioned in the release notes, the cors settings were changed in that release.
The network error from the screenshot you sent before said "CORS Error". That's a pretty strong indication that you didn't enable CORS. Does it work if you enable it?
No, but I think the issue may lie within reverse proxy and ports settings.
Only strange that Vikunja App connects without any issue.
In the dev tools, what's the value of the access-control-allow-origin
header in the response of the request to /info
?
@cerealconyogurt What do you see in the dev tools? (ctrl + shift + I)
I have the same issue. I have a self-hosted instance running and working fine in the browser and in the android app, but when I try to setup desktop app I cannot seem to get it to connect. I tried my instance (flatpak and .RPM) and the official one with both having same access problem.
In the dev tools, there is this error message:
I tried to create the file in the server folder where the Vinkunja container is installed, but I was unsuccessful in activating this cors.
cors:
enable: true
origins:
- "*"
I put it this way, as suggested in the documentation, am I doing something wrong?
I tried to move the config.yml to /etc/vikunja in the server, but without success
@brunotenisi Does it work if you set VIKUNJA_CORS_ENABLE
? The default value for origins is *
.
@brunotenisi Does it work if you set
VIKUNJA_CORS_ENABLE
? The default value for origins is*
.
Hello @kolaente, thank you for reply. I found the answer in a post in the vikunja community, here.
The fix was to add VIKUNJA_CORS_ENABLE: true to the docker compose environment.
After this, had to take the dockers down, and put them up again.