feat: 加入跨域处理

This commit is contained in:
2025-01-13 11:45:42 +08:00
parent 7178a17b18
commit 63ed00c558
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,
];