Docker-compose, CSRF token verification failed!

  • Used Zammad version: 5.3.1
  • Used Zammad installation type: docker-compose
  • Operating system: OpenSuse TW
  • Browser + version: Firefox 102.7.0esr (64-bit)

Hi, I started from scratch, installed the latest Zammad by docker-compose.
I can load the welcome page, start to configure an admin account and set a password for the admin which fails with “CSRF token verification failed”.

From ‘docker logs -f zammad-docker-compose-zammad-railsserver-1’:

I, [2023-02-15T12:37:38.772042 #1-112520]  INFO -- : Started POST "/api/v1/users" for 10.190.226.180 at 2023-02-15 12:37:38 +0000
I, [2023-02-15T12:37:38.791321 #1-112520]  INFO -- : Processing by UsersController#create as JSON
I, [2023-02-15T12:37:38.791377 #1-112520]  INFO -- :   Parameters: {"firstname"=>"MMMMM", "lastname"=>"MMMMM", "email"=>"MMMMM", "password"=>"[FILTERED]", "role_ids"=>[], "id"=>"c-4"}
I, [2023-02-15T12:37:38.797541 #1-112520]  INFO -- : CSRF token verification failed
I, [2023-02-15T12:37:38.797732 #1-112520]  INFO -- : CSRF token verification failed! (Exceptions::NotAuthorized)
app/controllers/application_controller/prevents_csrf.rb:36:in `verify_csrf_token'
app/controllers/application_controller/has_download.rb:21:in `block (4 levels) in <module:HasDownload>'
app/controllers/application_controller/has_download.rb:20:in `block (3 levels) in <module:HasDownload>'
app/controllers/application_controller/has_download.rb:19:in `block (2 levels) in <module:HasDownload>'
app/controllers/application_controller/handles_transitions.rb:16:in `handle_transaction'
I, [2023-02-15T12:37:38.799127 #1-112520]  INFO -- : Completed 401 Unauthorized in 8ms (Views: 0.4ms | ActiveRecord: 1.6ms | Allocations: 2377)

What can I do?

it works for me : CSRF Authentification failed - #8 by pqcomputers

This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.