S
S
Sergey Beloventsev2016-07-10 08:49:59
Yii
Sergey Beloventsev, 2016-07-10 08:49:59

How to debug the error Bad Request (#400) Failed to check the transmitted data.?

On any form submission to the backend, it gives an error

Bad Request (#400) Не удалось проверить переданные данные
. csrf is passed tell me how to debug this error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Arutyunov, 2016-07-10
@arutyunov

Try disabling csrf. Most likely it will work.
Where are you sending the data from?
It is worth remembering that the frontend and backend are different applications, and if they are opened simultaneously in the same browser, they will generate different csrfs, which is why submitting forms will always end with a 400 error.
How it happened for me: I opened the editing form in the admin panel, corrected something, updated the page on the frontend, looked, continued editing in the backend, I clicked save, but the form is no longer sent, because the csrf is already incorrect.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question