Skip to content

Invalid CSRF token due to Traefik #1428

@DylanVanBrugghe

Description

@DylanVanBrugghe

When accessing my Koillection behind a Traefik reverse proxy, I keep getting the "The CSRF token is invalid. Please try to resubmit the form." error every first time I try to submit a collection item form.

Image Image

When I try to submit the form a second time, there is no issue.

This only happens when accessing the web application by domain name. When I use the web application by IP, I see no CSRF errors.

I have added the necessary environment variables to my docker compose file:

Image

Am I missing something here?
I suppose there is something missing in my Traefik configuration, but I cannot seem to figure out what.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions