M
M
Maxim2015-05-23 23:44:17
Yii
Maxim, 2015-05-23 23:44:17

bad request. Failed to validate transmitted data. How to fix?

Error #400 occurs on the page after submitting the form. The head has a meta with the name and csrf token, the form also has an input with csrf. On one hosting everything works fine, on the other - an error. When csrf is disabled in the controller, it starts working. What could it be? What server settings to look at?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Андрей, 2015-05-24
@Ashlst

Почистите куки и кэш. Уберите content-length из заголовков (если Вы его посылаете)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question