InvoiceShelf / docker

InvoiceShelf Docker Image public repository
https://hub.docker.com/r/invoiceshelf/invoiceshelf
14 stars 5 forks source link

CSRF Token missmatch #10

Closed ChristianFranke closed 4 months ago

ChristianFranke commented 5 months ago

Describe the bug I restarted InvoiceShelf once after the installation with docker-compose. Then I could no longer log in. The strange thing is that it is reported that I was successfully logged in.

Expected behavior A successful login with redirection to the dashboard.

Screenshots

Bildschirmfoto 2024-05-30 um 13 12 15

Please complete the following information:

Optional info

jvgomg commented 5 months ago

I am also experiencing this issue after setting up with docker compose, running through the setup and trying to login for the first time.

gdarko commented 4 months ago

Hey @ChristianFranke , @jvgreenaway - The issue was due to not setting the SESSION_DOMAIN and SANCTUM_STATEFUL_DOMAINS in docker-compose.

I rebuild the images, and you can use the new instructions to set up invoiceshelf. Check the Readme.md.

cesardv commented 1 month ago

@gdarko Hi, so I am getting the same CSRF Token Mismatch error on a basic sqlite docker setup. I've set the SESSION_DOMAIN and SANCTUM_STATEFUL_DOMAINS values properly (AFAICT) for my domain (i.e set value to say invoice.mysite.xyz) for both, and still see the issue. Very little was changed from the sample sqlite docker compose file. Can please you explain why you think it is? Thanks!

cesardv commented 1 month ago

hmm seems that setting APP_DEBUG=true and changing to my correct time zone (America/New_York) for PHP_TZ and TIMEZONE allowed me to get past that error, and onto the Domain Verification part of installation...