feat: 加入跨域处理

This commit is contained in:
2025-01-13 11:45:42 +08:00
parent f7ac76ef84
commit c7a49c00d1
2 changed files with 15 additions and 1 deletions

12
config/cors.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
return [
'paths' => [],
'allowed_origins' => ['*'],
'allowed_origins_patterns' => [],
'allowed_methods' => ['*'],
'allowed_headers' => ['*'],
'exposed_headers' => [],
'max_age' => 0,
'supports_credentials' => true,
];