Allow cors
github.com/flynn314/allow-cors
Source
Issues
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
Requires (Dev)
None
Suggests
Provides
Conflicts
Replaces
MIT 3e78865508559b3324d9d5331d6f50902f8f64ef
This package is auto-updated.
Last update: 2024-11-17 16:15:56 UTC
# 1. add to Kernel.php 'cors.allow' => AllowCors::class, # 2. add middleware to route Route::middleware(['cors.allow'])->group(function () { Route::get('/my-api-call', 'Controller@index'); });