Re: lot of "Bad request. The CSRF tokens do not match"
От
Dave Page
Тема
Re: lot of "Bad request. The CSRF tokens do not match"
Дата
Msg-id
CA+OCxoxVHT94nJL=ZEKQwuBfVop2bvF6RsYccNoWzU5dJa-5Bg@mail.gmail.com
Ответ на
Список
Дерево обсуждения
lot of "Bad request. The CSRF tokens do not match" bw <bwakkie@gmail.com>
Re: lot of "Bad request. The CSRF tokens do not match" Dave Page <dpage@pgadmin.org>
Re: lot of "Bad request. The CSRF tokens do not match" bw <bwakkie@gmail.com>
Hi
On Thu, Jul 9, 2020 at 9:06 AM bw <bwakkie@gmail.com> wrote:
Hi all,I am getting a lot of *Bad request. The CSRF tokens do not match.* with the following setup on Ubuntu 20.04...
...
WSGIDaemonProcesspgadmin user=pgadmin group=pgadmin processes=2 threads=5 python-home=/data/.envs/pgadmin
That line is likely your problem. Change processes to 1 (and maybe increase threads to 20 or more).
With multiple processes, you have multiple instances of the pgAdmin server running. Each will have its own connection pool and CSRF tokens etc. so when a session starts on one process and then later makes a request that hits the second process, things will go kaboom.
В списке pgadmin-support по дате отправления