Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application. The Laravel-cors package allows you to send Cross-Origin Resource Sharing headers with Laravel middleware configuration.
Features
- Handles CORS pre-flight OPTIONS requests
- Adds CORS headers to your responses
- Match routes to only add CORS to certain Requests
- Global usage for Lumen
- Authorization headers / Credentials
- Disable CSRF protection for your API
- Documentation available
Categories
FrameworksLicense
MIT LicenseFollow CORS Middleware for Laravel
You Might Also Like
Gen AI apps are built with MongoDB Atlas
MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of CORS Middleware for Laravel!