Support the ongoing development of Laravel.io →
Requests Input

Hey everybody,

I'm just playing around with Lumen trying to build a small API. However I'm having issue with preflight headers. My server is setup correctly to send CORS headers. Allowed all domains, with all verbs (using same setup I can easily getting to work with Slim Framework - tough I can intercept OPTIONS in Slim itself).

Now sending a request to API it fails on 405 preflight OPTIONS request with 405 Method not allowed. Any ideas?

Last updated 3 years ago.
0

In case anybody wonders. I extended request to force reply OPTIONS preflight with success CORS headers. Then it works ok.

0

Hi rockoo do you perhaps have an example of what you did.

thanks

Dan

0

Sign in to participate in this thread!

Eventy

Your banner here too?

rockoo rockoo Joined 26 Apr 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.