Registry / web-framework / barryvdh-laravel-cors

barryvdh-laravel-cors

JSON →
library3.0.0phppackagistunverified

Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application

composer require barryvdh/laravel-cors
INSTALL
IMPORT
SIG · BARRYVDH-LARAVEL-C
B
barryvdh-laravel-cors
web-frameworkphpv3.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HandleCors
use Barryvdh\Cors\HandleCors;

Add CORS middleware to Laravel kernel

use Barryvdh\Cors\HandleCors; // In App\Http\Kernel, add to $middleware: protected $middleware = [ \Barryvdh\Cors\HandleCors::class, ];
Debug
Known issues
breakingDeprecated in favor of fruitcake/laravel-cors
fix
Replace with fruitcake/laravel-cors package
affects: >=3.0
Upgrade
Version history
3.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
Meta
1
OpenAI (training)
1
Resources
barryvdh-laravel-cors — pip install barryvdh-laravel-cors · libregistry