Summer Sale! All accounts are 50% off this week.

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.