I
I
Isherath2018-10-06 02:20:12
Yii
Isherath, 2018-10-06 02:20:12

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

1 answer(s)
M
Mysterion, 2018-10-06
@Isherath

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 your question

Ask a Question

731 491 924 answers to any question