#CORS error - Only with 404 http code
1 messages · Page 1 of 1 (latest)
Are you sure the 404 is sent by Laravel, and not by a reverse proxy like nginx?
I think this could happen if you have a route with route model binding, the SubstituteBindings middleware probably runs before cors (I'm not actually sure what the default is, and certainly not for Laravel 8, been quite a while). If that's the case you'd want to up the priority of the CORS middleware if you're expecting multiple error states
@silk mortar I found the laravel logs related to the endpoint, so i don't believe that.
@lofty fog That can be, I will control the priorities and and i will come back with what i find
@lofty fog
I define the $middlewarePriority and moved the middelware \Fruitcake\Cors\HandleCors::class to the first place in $middleware , same with $middlewarePriority
I keep getting the same result