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-corspackage and update any references from
Fruitcake\Corsin your code. This is automated in the Laravel 7.x Shift.
cors.phpfile is up-to-date by republishing it with
artisan vendor:publish --tag="corsor comparing yours to the latest version.
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.