Categories
How do I send an ajax post to a Yii2 controller?
400 error when sending ajax post method to Yii2 controller... What? How? Where? What for?
Answer the question
In order to leave comments, you need to log in
You probably don't send the CSRF token. In addition to the response code, the reason is also written. You can look in the logs or in the debugger.
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question