增加 奇怪的 Header
This commit is contained in:
parent
1f54c24e85
commit
19cae6317d
@ -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')) {
|
||||
|
@ -93,7 +93,6 @@
|
||||
// \Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
// \App\Http\Middleware\AllowCors::class,
|
||||
// ],
|
||||
'cors' => \App\Http\Middleware\AllowCors::class,
|
||||
]);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user