The laravel-cors package allows you to send Cross-Origin Resource Sharing headers with Laravel middleware configuration.