缓存 CORS

This commit is contained in:
iVampireSP.com 2022-09-09 12:04:39 +08:00
parent c54e9ee981
commit 2b7835c8f1
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -19,7 +19,8 @@ public function handle($request, Closure $next)
'Access-Control-Allow-Origin' => '*',
'Access-Control-Allow-Methods' => 'POST, GET, OPTIONS, PUT, PATCH, DELETE',
'Access-Control-Allow-Credentials' => 'true',
'Access-Control-Allow-Headers' => 'Origin, X-Requested-With, Content-Type, Accept, Authorization'
'Access-Control-Allow-Headers' => 'Origin, X-Requested-With, Content-Type, Accept, Authorization',
'Access-Control-Max-Age' => '86400',
];
if ($request->isMethod('OPTIONS')) {