update
This commit is contained in:
+7
-6
@@ -19,14 +19,15 @@ return [
|
||||
'allowed_methods' => ['*'],
|
||||
|
||||
'allowed_origins' => [
|
||||
'http://localhost:3000',
|
||||
'http://localhost:5173',
|
||||
'http://localhost:5174',
|
||||
'http://localhost:4173',
|
||||
'https://portal.tgs.com.vn',
|
||||
'https://admin.portal.tgs.com.vn',
|
||||
'http://portal.tgs.com.vn',
|
||||
'http://admin.portal.tgs.com.vn',
|
||||
// Origin dev chỉ bật ở môi trường local (supports_credentials = true nên không để lọt lên prod).
|
||||
...(env('APP_ENV') === 'local' ? [
|
||||
'http://localhost:3000',
|
||||
'http://localhost:5173',
|
||||
'http://localhost:5174',
|
||||
'http://localhost:4173',
|
||||
] : []),
|
||||
],
|
||||
|
||||
'allowed_origins_patterns' => [],
|
||||
|
||||
Reference in New Issue
Block a user