refactor: dynamicize jumphost credentials from database and restrict CORS allowed origins

This commit is contained in:
pbao9
2026-05-12 15:37:19 +07:00
parent 760b58e08d
commit cfffff96bf
2 changed files with 32 additions and 6 deletions
+6 -1
View File
@@ -18,7 +18,12 @@ return [
'allowed_methods' => ['*'],
'allowed_origins' => ['*'],
'allowed_origins' => [
'http://localhost:3000',
'http://localhost:5173',
'http://localhost:5174',
'https://portal.tgs.com.vn',
],
'allowed_origins_patterns' => [],