84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
yii2 advanced 集成wangEditor,图片上传报400。
400之前遇到说因为csrf,但隐藏域代码已加<input type="hidden" id="_csrf" name="_csrf-frontend" value="<?php echo yii::$app->request->csrfToken; ?>" />
认证0级讲师
Try to disable it when adding public $enableCsrfValidation = false; or init() to the corresponding controller. If it works, it means you wrote the wrong CSRF token hidden field when adding it.
public $enableCsrfValidation = false;
You can try changing your hidden domain to something like this
<input type="hidden" name="_csrf" value="<?php echo yii::$app->request->csrfToken; ?>" />
Try to disable it when adding
public $enableCsrfValidation = false;
or init() to the corresponding controller. If it works, it means you wrote the wrong CSRF token hidden field when adding it.You can try changing your hidden domain to something like this