缓存 CORS
This commit is contained in:
parent
c54e9ee981
commit
2b7835c8f1
@ -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')) {
|
||||
|
Loading…
Reference in New Issue
Block a user