mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 02:21:07 +03:30
20 lines
316 B
PHP
20 lines
316 B
PHP
<?php
|
|
|
|
namespace App\Http\Middleware;
|
|
|
|
use Closure;
|
|
|
|
class Cors
|
|
{
|
|
|
|
|
|
public function handle($request, Closure $next)
|
|
{
|
|
return $next($request)
|
|
// ->header('Access-Control-Allow-Origin', '*')
|
|
->header('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
|
|
}
|
|
|
|
|
|
}
|