Answer the question
In order to leave comments, you need to log in
Why does depDrop throw a 400 Bad Request error?
The depDrop widget throws a 400 error in the console.
Added <?= Html::csrfMetaTags() ?>
to layouts When disabling csrf in the controller, everything works fine, but disabling it is not the point. I have my own js with an ajax request, which also gave the same error, as soon as I started sending csrf from the meta tag to data, everything worked there, but now the question is how to send csrf to depDrop and why he himself does not beret.
It is also interesting that the widget worked before the transfer from windows to linux (but this is not accurate, I did not see it myself)
Answer the question
In order to leave comments, you need to log in
Added <?= Html::csrfMetaTags() ?> to layouts
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question