Skip to content
This repository was archived by the owner on May 23, 2022. It is now read-only.
This repository was archived by the owner on May 23, 2022. It is now read-only.

Failing preflight requests #26

@rchavik

Description

@rchavik

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;
        }
    }

Are we missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions