标签:mis param enable data script ida title ring als
public function init(){
$this->enableCsrfValidation = false;
}
<input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
var csrfToken = $(‘meta[name="csrf-token"]‘).attr("content");
$.ajax({
type: ‘POST‘,
url: url,
data: {_csrf:csrfToken},
success: success,
dataType: dataType
});
yii框架post提交遇到400 (Unable to verify your data submission. )
标签:mis param enable data script ida title ring als
原文地址:http://www.cnblogs.com/taikongliu/p/6364318.html