cachethq / Docker

A Dockerized version of Cachet.
https://cachethq.io
BSD 3-Clause "New" or "Revised" License
415 stars 280 forks source link

CSRF token validation failed error after 2.4 install #341

Closed jgadbois closed 5 years ago

jgadbois commented 5 years ago

I'm attempting to install cachet via docker with the latest dockerfile. Everything works fine until I attempt to login, then I get CSRF TOKEN VALIDATION FAILED errors on login.

I've tried overriding SESSION_DRIVER with pretty much every option (database, file, etc), but no matter what I get this error.

jgadbois commented 5 years ago

I'm using master, so it it possible that the latest pull request with the apc default could have broken things?

jgadbois commented 5 years ago

It works once I switch to the 2.4 branch

Mondrethos commented 5 years ago

As @jgadbois said, switching the Docker Repo 2.4 branch fixes this issue.

ofostier commented 5 years ago

I finally resolve this issue with this trick Set APP_ENV=production APP_DEBUG=false

takuy commented 4 years ago

@jgadbois @shieldheart This doesn't seem to be a solution anymore. I'm trying to use 2.4 but still receive this error.

linglingqi007 commented 4 years ago

@jgadbois @shieldheart This doesn't seem to be a solution anymore. I'm trying to use 2.4 but still receive this error.

If you checkout branch 2.4, need rm before build image. rebuild image.