flynn314/allow-cors

Allow cors

Installs: 34

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/flynn314/allow-cors

2.0.1 2023-04-17 12:53 UTC

This package is auto-updated.

Last update: 2025-09-17 17:58:29 UTC


README

# 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');
});