增加 奇怪的 Header

This commit is contained in:
iVampireSP.com 2022-09-09 14:52:08 +08:00
parent 1f54c24e85
commit 19cae6317d
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,10 @@ public function handle($request, Closure $next)
'Access-Control-Allow-Credentials' => 'true',
'Access-Control-Allow-Headers' => 'Origin, X-Requested-With, Content-Type, Accept, Authorization',
'Access-Control-Max-Age' => '86400',
'server' => 'Cluster Ready!',
'x-powered-by' => 'LaeCloud',
'x-for-you' => 'Code is Poetry.',
];
if ($request->isMethod('OPTIONS')) {

View File

@ -93,7 +93,6 @@
// \Illuminate\Routing\Middleware\SubstituteBindings::class,
// \App\Http\Middleware\AllowCors::class,
// ],
'cors' => \App\Http\Middleware\AllowCors::class,
]);
/*