[GH-ISSUE #1849] Unathorized to create a new account in the Vikunja Selfhost deployment (docker compose) #6494

Closed
opened 2026-04-20 17:05:47 -05:00 by GiteaMirror · 10 comments
Owner

Originally created by @Luigipie on GitHub (Nov 19, 2025).
Original GitHub issue: https://github.com/go-vikunja/vikunja/issues/1849

Description

Hello, i'm having an issue trying to deploy Vikunja on docker, deployed successfully i can reach the webpage but every time i try to create an account, the system give me an "Unauthorized" response, what can be the reason?

Actually i'm going to share my docker compose setting file in the screenshot

Image

Vikunja Version

latest

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

No response

Originally created by @Luigipie on GitHub (Nov 19, 2025). Original GitHub issue: https://github.com/go-vikunja/vikunja/issues/1849 ### Description Hello, i'm having an issue trying to deploy Vikunja on docker, deployed successfully i can reach the webpage but every time i try to create an account, the system give me an "Unauthorized" response, what can be the reason? Actually i'm going to share my docker compose setting file in the screenshot <img width="524" height="562" alt="Image" src="https://github.com/user-attachments/assets/99ca3dcb-a89e-4f3b-bedc-13af428ea2f6" /> ### Vikunja Version latest ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots _No response_
Author
Owner

@kolaente commented on GitHub (Nov 19, 2025):

Are you accessing the frontend from the same url you put into the publicurl?

<!-- gh-comment-id:3554548273 --> @kolaente commented on GitHub (Nov 19, 2025): Are you accessing the frontend from the same url you put into the publicurl?
Author
Owner

@Luigipie commented on GitHub (Nov 19, 2025):

Are you accessing the frontend from the same url you put into the publicurl?

yes of course, otherway for me was impossible reach the WebUI, i put a screenshot for test

Image
<!-- gh-comment-id:3554581260 --> @Luigipie commented on GitHub (Nov 19, 2025): > Are you accessing the frontend from the same url you put into the publicurl? yes of course, otherway for me was impossible reach the WebUI, i put a screenshot for test <img width="1205" height="969" alt="Image" src="https://github.com/user-attachments/assets/ef22a75d-cbbf-4fdd-b3e6-084d98c3c482" />
Author
Owner

@kolaente commented on GitHub (Nov 19, 2025):

How are you using https without a domain?

<!-- gh-comment-id:3554596258 --> @kolaente commented on GitHub (Nov 19, 2025): How are you using https without a domain?
Author
Owner

@Luigipie commented on GitHub (Nov 19, 2025):

How are you using https without a domain?

Honestly the https was just a test, i've seen in other issue (#1303) they've resolved using the https protocol, but pratically in mine setup, everything is accesible locally and when not at home, trought tailscale

<!-- gh-comment-id:3554787418 --> @Luigipie commented on GitHub (Nov 19, 2025): > How are you using https without a domain? Honestly the https was just a test, i've seen in other issue (#1303) they've resolved using the https protocol, but pratically in mine setup, everything is accesible locally and when not at home, trought tailscale
Author
Owner

@kolaente commented on GitHub (Nov 19, 2025):

okay, but are you accessing it via https or http at the ip+port in your publicurl? Because if you're accessing via http, the publicurl is a different thing and thus the request is blocked.

<!-- gh-comment-id:3554816255 --> @kolaente commented on GitHub (Nov 19, 2025): okay, but are you accessing it via https or http at the ip+port in your publicurl? Because if you're accessing via http, the publicurl is a different thing and thus the request is blocked.
Author
Owner

@Luigipie commented on GitHub (Nov 19, 2025):

okay, but are you accessing it via https or http at the ip+port in your publicurl? Because if you're accessing via http, the publicurl is a different thing and thus the request is blocked.

only with my.IP:3456, with http/s://my.IP:3456 it says that is not possible complete the request and blocked the access

<!-- gh-comment-id:3554839279 --> @Luigipie commented on GitHub (Nov 19, 2025): > okay, but are you accessing it via https or http at the ip+port in your publicurl? Because if you're accessing via http, the publicurl is a different thing and thus the request is blocked. only with my.IP:3456, with http/s://my.IP:3456 it says that is not possible complete the request and blocked the access
Author
Owner

@kolaente commented on GitHub (Nov 19, 2025):

Then you'll need to adjust the publicurl to match that.

The other option would be to disable cors alltogether or extend the cors.origins option with the other publicurl.

<!-- gh-comment-id:3554870811 --> @kolaente commented on GitHub (Nov 19, 2025): Then you'll need to adjust the publicurl to match that. The other option would be to disable cors alltogether or extend the [`cors.origins`](https://vikunja.io/docs/config-options/#1-cors-origins) option with the other publicurl.
Author
Owner

@Luigipie commented on GitHub (Nov 20, 2025):

Then you'll need to adjust the publicurl to match that.

The other option would be to disable cors alltogether or extend the cors.origins option with the other publicurl.

Wait, the publicURL that is listed in the screenshot is just a test, i've already tried also with the https (without s) but also doesn't work, you'ave an example also how can i work with the cors.origins?

thank you

<!-- gh-comment-id:3559674489 --> @Luigipie commented on GitHub (Nov 20, 2025): > Then you'll need to adjust the publicurl to match that. > > The other option would be to disable cors alltogether or extend the [`cors.origins`](https://vikunja.io/docs/config-options/#1-cors-origins) option with the other publicurl. Wait, the publicURL that is listed in the screenshot is just a test, i've already tried also with the https (without s) but also doesn't work, you'ave an example also how can i work with the cors.origins? thank you
Author
Owner

@kolaente commented on GitHub (Nov 20, 2025):

If you put https, you need to configure your Vikunja instance so that it is accessible via https. If you only access Vikunja via http, the url should be configured to be accessed via http.

<!-- gh-comment-id:3559959143 --> @kolaente commented on GitHub (Nov 20, 2025): If you put `https`, you need to configure your Vikunja instance so that it is accessible via `https`. If you only access Vikunja via http, the url should be configured to be accessed via http.
Author
Owner

@kolaente commented on GitHub (Nov 21, 2025):

I'll close this as it seems to be more of a configuration issue than an actual bug. Please ping if you still need assistance.

<!-- gh-comment-id:3563140335 --> @kolaente commented on GitHub (Nov 21, 2025): I'll close this as it seems to be more of a configuration issue than an actual bug. Please ping if you still need assistance.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#6494