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

debjit's avatar

Laravel breeze api CROS problem

So I was trying about breeze API scaffold, is it working when both domains are serving under the same "localhost" domain. But when trying to use an API client or changing to a .test domain it breaks and shows CORS errors immediately. I have tried using "fruitcake/laravel-cors" package and configured it accordingly but still getting CORS errors. Here is the latest GitHub repo https://github.com/debjit/next-backend I have "php artisan cache:clear" "php artisan optimize:clear" But the CROS is giving problems.

For front end I am using https://github.com/laravel/breeze-next

0 likes
1 reply

Please or to participate in this conversation.