Now Laravel 7 supports CORS (Cross-Origin Resource Sharing) out of the box.
You know better every developer face CORS problem during API development.
Laravel 7 includes first-party support for configuring Cross-Origin Resource Sharing (CORS) OPTIONS
request responses by integrating the popular Laravel CORS package written by Barry vd. Heuvel. A new cors
configuration is included in the default Laravel application skeleton.
If you’re upgrading to Laravel 7, and you’ve previously used cors
package, you can simply remove it and Laravel will now handle it for you out of the box.