Error during login: CSRF verification failed. Request aborted

Hello everyone,
I have installed Kobo on my own server using kobo-install script and the webUI is loading okay,
However, I have the $subject error message which is preventing me from login.
I am accessing the webUI via reverse proxy.
My Google-fu has not helped, but I do know that this must be a Django issue with trusted domains. My question is how I can edit the Django settings.

Is anyone able to help me fix this?

Thanks in advance.

Welcome to the community, @odhiambo! Pinging @stephenoduor, @ks_1, and @naylinsoe for your support!

1 Like

Replying to myself. I managed to resolve this issue with a reconfiguration during install. My site is now up and running using SSL.

1 Like

@odhiambo, :tada: :heart: :pray:

Could you also kindly share how you configured it? Your solution could help other users with similar issues. TIA

Here is how I did it:

Do you want to use HTTPS?
        1) Yes
        2) No
[1]:
╔════════════════════════════════════════════════════════════════════╗
β•‘                                                                    β•‘
β•‘ Please note that certificates must be installed on a reverse-proxy β•‘
β•‘ or a load balancer.kobo-install can install one, if needed.        β•‘
β•‘                                                                    β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
Auto-install HTTPS certificates with Let's Encrypt?
        1) Yes
        2) No - Use my own reverse-proxy/load-balancer
[2]:
Is your reverse-proxy/load-balancer installed on this server?
        1) Yes
        2) No
[1]:
Internal port used by reverse proxy?
[8003]:

I then use Apache reverse proxy with SSL certificates from Letsencrypt.

And while at this, may I kindly ask whether it’s necessary to expose the url kc.domain.name (KoboCat sub domain) to the public by publishing it? I tested mine (and kc.kobotoolbox.org) and found nothing in both.

Thank you.

1 Like

@odhiambo, :pray: