Token issue? https://stackoverflow.com/a/35311724
May 22, 2019
4
Level 1
MethodNotAllowedHttpException on post route in Lumen 5.7
Hi,
I struggle with this error since yesterday :
MethodNotAllowedHttpException in RoutesRequests.php line 233
It appear when I use a new post route to my lumen api with postman (I set method on POST) :
http://api.domain.com/v1/places/search/
and in routes/web.php :
$router->post('places/search/', ['uses' => 'PlaceController@getList']);
I check others routes and this is the only one with "places" and "search" in it.
If anybody have a idea about it ?
Thanks
Level 7
Looks like an issue with CORS and POSTMAN.
https://seegatesite.com/how-to-resolve-no-access-control-allow-origin-header-in-lumen/
Good luck.
1 like
Please or to participate in this conversation.