This commit is contained in:
pbao9
2026-05-12 13:50:53 +07:00
parent 96778e7bed
commit 2d4f0fd4b2
6 changed files with 150 additions and 84 deletions
+3 -9
View File
@@ -1,7 +1,6 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Cross-Origin Resource Sharing (CORS) Configuration
@@ -15,20 +14,15 @@ return [
|
*/
'paths' => ['api/*', 'sanctum/csrf-cookie', 'v1/*'],
'paths' => ['api/*', 'sanctum/csrf-cookie', 'login', 'logout'],
'allowed_methods' => ['*'],
'allowed_origins' => ['*', 'http://localhost:5173/', 'http://localhost:3000/', 'http://localhost:3001/', 'https://127.0.0.1/'],
'allowed_origins' => ['*'],
'allowed_origins_patterns' => [],
'allowed_headers' => ['*'],
'exposed_headers' => [],
'max_age' => 0,
'supports_credentials' => false,
'supports_credentials' => true,
];