S
S
Sergey Beloventsev2016-04-30 08:00:44
Yii
Sergey Beloventsev, 2016-04-30 08:00:44

Why did non-csrf forms abruptly stop being sent?

just worked and now everywhere in all forms, without exception, falls error 400 Bad Request
for orthodox here csrf 'd0ee39aee894ffc9b6d42d4f87debe40e8eda9554fcc6b86b85f370261bd0b1da: 2: {i: 0; s: 5: \ "_ csrf \"; i: 1; s: 32: \ "GIbpFnsIsgItxlnjiMy5p8oBr5M1wD0K \";}'
I understand that I'm stupid somewhere, but here's what the debugger says
8 07:41:51.213 trace yii\base\Controller::runAction Route to run: image/
create 400 exception 'yii\web\BadRequestHttpException' with message 'Failed to validate submitted data.' in C:\OpenServer\domains\film.lc\vendor\yiisoft\yii2\web\Controller.php:110
Stack trace:
#0 C:\OpenServer\domains\film.lc\vendor\yiisoft\yii2\base\Controller.php(152): yii\web\Controller->beforeAction(Object(yii\base\InlineAction))
#1 C: \OpenServer\domains\film.lc\vendor\yiisoft\yii2\base\Module.php(454): yii\base\Controller->runAction('create', Array)
#2 C:\OpenServer\domains\film. lc\vendor\yiisoft\yii2\web\Application.php(84): yii\base\Module->runAction('image/create', Array)
#3 C:\OpenServer\domains\film.lc\vendor\yiisoft \yii2\base\Application.php(375): yii\web\Application->handleRequest(Object(yii\web\Request))
#4 C:\OpenServer\domains\film.lc\backend\web\index.php (18): yii\base\Application->run()
#5 {main}
tell me what could be wrong? Or how to test for an error

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question