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.