Closed pbvarsok closed 6 years ago
@pbvarsok i'm facing the same issue.
Please, if you fix it respond here!
I'll do the same :)
Sorry @rafadpedrosa, I've removed barryvdh/laravel-cors and installed "nordsoftware/lumen-cors": "^2.2" All works fine with that package.
Can you try with 0.10.1
?
@barryvdh for me 0.10.1
is the fix in Lumen 5.4
Nice :)
*Lumen (5.5.2) (Laravel Components 5.5.)**
bootstrap/app.php
routes/web.php
config/cors.php
From console: curl -X POST 'http://api.plateabar.lan/test/user?e=3&a=1' I get the response OK.
From Postman, I get the response OK.
But when I make it from Angular4 I get: OPTIONS http://api.local.lan/test/user 405 (Method Not Allowed) tests:1 Failed to load http://api.local.lan/test/user: Response for preflight has invalid HTTP status code 405