Yii2.0中POST提交數據時出現400請求錯誤

一、發現問題所在的方法 使用Chrome瀏覽器,檢查錯誤,到network查看response: Bad Request (#400): Unable to verify your date submission.   (沒法驗證提交的數據) 二、解決方法 (1)關閉_csrf驗證 public function init(){ $this->enableCsrfValidation =
相關文章
相關標籤/搜索