refactor: 修改跨域暴露的header

This commit is contained in:
2025-04-01 14:44:28 +08:00
parent ff95f2cdb3
commit 1534bc6c31

View File

@@ -6,7 +6,7 @@ return [
'allowed_origins_patterns' => [], 'allowed_origins_patterns' => [],
'allowed_methods' => ['GET', 'POST', 'DELETE', 'PUT', 'OPTIONS'], 'allowed_methods' => ['GET', 'POST', 'DELETE', 'PUT', 'OPTIONS'],
'allowed_headers' => ['Content-Type', 'Authorization', 'Refresh-Authorization', 'Content-Disposition'], 'allowed_headers' => ['Content-Type', 'Authorization', 'Refresh-Authorization', 'Content-Disposition'],
'exposed_headers' => ['Authorization'], 'exposed_headers' => ['Authorization', 'Refresh-Authorization', 'Content-Disposition'],
'max_age' => 7200, 'max_age' => 7200,
'supports_credentials' => true, 'supports_credentials' => true,
]; ];