palanik / lumen-cors

CORS Middleware for Lumen micro-framework
MIT License
101 stars 31 forks source link

OPTIONS are not intercepted #2

Open kiwina opened 9 years ago

kiwina commented 9 years ago

Unless options are defined in the route they are not intercepted and the request will fail. here a gist that has a really simple workaround using a service provider that registers an option route. https://gist.github.com/vluzrmos/1238a0c81bfd90853f58

palanik commented 9 years ago

@kiwina You want to send me a PR? I'll merge it.