Closed wschwarte closed 5 years ago
So my custom headers were not exposed correctly. Moving the expose headers to after the preflght options request seems to fix this.
Your code should move this outside the if (strtoupper($request->getMethod()) === 'OPTIONS') { }
if (strtoupper($request->getMethod()) === 'OPTIONS') { }
then it works correctly.
Fixed in https://github.com/ozee31/cakephp-cors/releases/tag/v.1.1.5
So my custom headers were not exposed correctly. Moving the expose headers to after the preflght options request seems to fix this.
Your code should move this outside the
if (strtoupper($request->getMethod()) === 'OPTIONS') { }
then it works correctly.