I'm experiencing some problem due to actions being executed in preflight requests.
Currently, I workaround this by adding the following in my AppController:
public function beforeFilter(\Cake\Event\EventInterface $event)
{
if ($this->request->is('options')) {
$event->setResult($this->response);
return $this->response;
}
}
I'm experiencing some problem due to actions being executed in preflight requests.
Currently, I workaround this by adding the following in my
AppController
:Are we missing something?