PWA install option missing

Unlike in the demo site, the option to install the PWA is not appearing on the page. Does this require any special configurations, either on Vikunja or the reverse-proxy?

My vikunja instance is used as a subdomain (ie., using the latest official docker images.

It should work without any special configuration. Are there any messages in the browser console?

I checked the browser console and indeed there seems to be an error, which i’ll paste below (after removing sensitive info):

There seems to be a CORS issue due to my use of Authentik.

Any idea how to resolve this ?

How are you using authentik? This looks like authentik is preventing the download of the service worker assets?

Vikunja is behind a domain level proxy from Authentik. It is weird that it is stopping the download, as the PWA from Tandoor works as expected and is behind authentik as well.

I use SWAG-docker as my reverse proxy and as far as I know, I haven’t set up any CORS (but i’ll check, maybe something escaped me)

Edit: I also use authentik as a OIDC provider for Vikunja, if that helps

Is Authentik using a cookie or a Bearer Token?

What surprises me more is how you seem to be able to see the home page and the rest of the Vikunja frontend but not the manifest file.

I’m pretty sure it is using a cookie.

Vikunja does work great.

Can you check with the network tab if the request to the webmanifest file is done with that cookie?

Uhh, I’m not quite sure what you mean with that, but maybe I found what you want:

Edit: If it is easier for you to debug (and you want to, of course) I can set you up with a temporary account on my system

That looks like it has the correct cookie. It seems like this is a problem with your Authentik or SWAG setup. Is there anything in Authentik’s logs? I don’t know anything about Authentik (or SWAG), you may want to ask on their forum or Discord about this.

Maybe the proxy does the authentication by a list of known file endings and .webmanifest isn’t one of them?

Authentik logs don’t seem to be showing anything out of the ordinary (though i’m not accustomed to parsing them). The weird thing is that it doesn’t have an issue with the Tandoor PWA.

Thanks for helping me diagnose this! I’ll try asking around the Authentik discord for the next steps.

1 Like