Impossible to login - CSRF token verification failed!

I’ve installed Zammad and I successfully accessed the admin panel.
However, in a sudden, after having changed the protocol to https I’m not able to access it anymore.
Error is CSRF token verification failed!

How can I solve this issue?

  • Used Zammad version: 5.2.2
  • Used Zammad installation type: package
  • Operating system: CentOS
  • Browser + version: Chrome

Expected behavior:

Actual behavior:

Steps to reproduce the behavior:

Zammad expects specific information when using HTTPs.
These information come from your webserver - If I’d have to guess your webserver does not handle https or handles both (bad idea).

Usually the scheme is detected correctly, but you could also force it to overcome that issue.
See: zammad/zammad_ssl.conf at develop · zammad/zammad · GitHub (beware this line appears twice in that configuration file)