Update CORS

This commit is contained in:
iVampireSP.com 2022-08-27 11:44:18 +08:00
parent 1e243b55c5
commit 27935e4f5a
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -18,10 +18,9 @@ public function handle(Request $request, Closure $next)
{ {
// Allow from any origin // Allow from any origin
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Credentials: true'); header('Access-Control-Allow-Credentials: true');
header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS'); header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS');
return $next($request); return $next($request);
} }
} }