fruitcake/php-cors
Standalone PHP CORS library and Symfony HttpFoundation middleware implementing the W3C CORS spec. Configure allowed origins, methods, headers, exposed headers, and max-age; supports regex origin patterns. Used by Stack and Laravel integrations.
Access-Control-Allow-Origin).For executives: "This package eliminates CORS-related security risks and compliance gaps while reducing engineering effort. With 100% test coverage and active maintenance for modern PHP/Symfony versions, it ensures our APIs reliably support cross-origin requests for SPAs and third-party integrations without custom development—saving time and mitigating vulnerability exposure." For engineering: "It provides a battle-tested, standards-compliant CORS implementation that integrates seamlessly with Laravel/Symfony via a simple configuration layer. Handles all edge cases (preflight requests, credentials, dynamic origins) with zero maintenance burden—freeing your team to focus on core features."
How can I help you explore Laravel packages today?