refactor: 跨域处理修改
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'paths' => [],
|
||||
'paths' => ['*'],
|
||||
'allowed_origins' => ['*'],
|
||||
'allowed_origins_patterns' => [],
|
||||
'allowed_methods' => ['*'],
|
||||
'allowed_headers' => ['*'],
|
||||
'allowed_methods' => ['GET', 'POST', 'DELETE', 'PUT', 'OPTIONS'],
|
||||
'allowed_headers' => ['Content-Type', 'Authorization', 'Refresh-Authorization'],
|
||||
'exposed_headers' => [],
|
||||
'max_age' => 0,
|
||||
'max_age' => 7200,
|
||||
'supports_credentials' => true,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user