I am now working with CakePHP 4 and as frontend angular. I use Angular-Proxy because of CORS. This also works with my CakePHP 3 installation, but since I’m using 4, the $this->request->getDate() function is empty. At first I thought that I had to use $this->request->trustProxy = true;. But it doesn’t work that way either. Maybe someone can help me! Thanks!
$this->request->getData(), right? not
Yes, i meant getData()! Sorry!
In case anyone’s interested: this problem has nothing to do with Proxy or Cors. It’s simply “->add(new BodyParserMiddleware())”. In CakePHP 3 it was obviously enabled by default. Stupid of me, but since I assumed something completely different for a long time it still took a lot of time.