fruitcake/laravel-cors
Laravel middleware to handle Cross-Origin Resource Sharing (CORS). Configure allowed origins, methods, headers, credentials, and exposed headers via a config file. Adds proper CORS response headers and supports preflight OPTIONS requests for APIs and SPAs.
Use the new fruitcake/php-cors stand-alone version instead of asm89/stack-cors. See https://github.com/fruitcake/php-cors/releases/tag/v1.0.0 for more information
Revert namespace change on minor version See https://github.com/fruitcake/laravel-cors/pull/558 and https://github.com/fruitcake/laravel-cors/pull/557
3.x will still use fruitcake/php-cors
Use the new fruitcake/php-cors stand-alone version instead of asm89/stack-cors. See https://github.com/fruitcake/php-cors/releases/tag/v1.0.0 for more information
To avoid memory leaks with Octane (https://github.com/fruitcake/laravel-cors/pull/469)
Add support for Laravel 8, drop unsupported versions.
Uses v2.0.1 of stack-cors, re-enables reflective headers instead of wildcards.
asm89/stack-cors 2.x is now used, with these notable changes:
Validate config values when creating the Service, instead of when used.
php artisan vendor:publish --tag=cors
paths option to match your routescamelCase to snake_case, please update your own config.cors config in Lumen.paths option is added to match certain routes only, while still using global middleware. This allows for better error handling.How can I help you explore Laravel packages today?