Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vincent15000's avatar

Upgrading from Laravel 9 to 10 => CORS problem

I had a CORS problem after upgrading from Laravel 9 to 10.

The modification to do in the code is not specified in the upgrade guide.

Here is what to do.

You have to replace \Fruitcake\Cors\HandleCors::class, with \Illuminate\Http\Middleware\HandleCors::class, in the Kernel.php file.

0 likes
0 replies

Please or to participate in this conversation.