CORS config allowed_origins should be an array
Laravel 7 added the fruitcake/laravel-cors package by default. However, this package was previously named barryvdh/laravel-cors. In addition, its configuration file has changed over the versions.
The combination of these may lead to some outdated code causing this error.
To resolve this error:
fruitcake/laravel-cors package and update any references from Barryvdh\Cors to Fruitcake\Cors in your code. This is automated in the Laravel 7.x Shift.cors.php file is up-to-date by republishing it with artisan vendor:publish --tag="cors or comparing yours to the latest version.artisan cache:clear and artisan config:clear.Sign in with any of the following services to connect Shift with your Laravel project.
Don't use one of these services?
Temporarily push your project to a free, private repository on one of these cloud-based services or upgrade your project locally with Shift for Docker.