See also
- Adds CORS headers to responses
- Supports multirule configuration
composer require kpod13/laravel-corsmakerAdd Kpod13\CorsMaker\ServiceProvider::class into providers in config/app.php.
Clear cache php artisan config:cache
protected $middleware = [
CorsMakerHandler::class
];php artisan vendor:publish --provider="Kpod13\CorsMaker\ServiceProvider"See example in config/corsmaker.php
composer install --dev./vendor/bin/phpunit