Проблема при сохранении данных
Missing CSRF token body
Cake\Http\Exception\InvalidCsrfTokenException
это мой код
if($this->request->is('post') || $this->request->is('put')){
$data = $this->request->getData();
$id_user = $this->Auth->user('id');
$user = $this->Users->get($id_user);
if(!empty($data['avatar_file'])){
$user->avatar_file = $data['avatar_file'];
}
if (!empty($data['facebook_url'])){
$user->facebook_url = $data['facebook_url'];
}
$user = $this->Users->save($user);
$this->Flash->success('Profil Bien modifiée');
return $this->redirect(['action' => 'profil']);
}