refactor: 跨域处理修改

This commit is contained in:
2025-01-13 13:34:12 +08:00
parent e2028f5b85
commit 06e51d63f3

View File

@@ -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,
];