- Added suspend method in VCenterManagerController to handle VM suspension requests. - Introduced VmSuspendedMail for notifying customers about VM suspension. - Created email template for VM suspension notification. - Updated API routes to include VM suspend functionality. - Modified cors.php to allow additional local development URL. - Updated DatabaseSeeder to include AdminSeeder and commented out unused seeders. - Removed deprecated Livewire components related to cart, customer email history, invoices, orders, tickets, transactions, user settings, and VPS reinstall modal.
39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
<?php
|
|
|
|
return [
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Cross-Origin Resource Sharing (CORS) Configuration
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here you may configure your settings for cross-origin resource sharing
|
|
| or "CORS". This determines what cross-origin operations may execute
|
|
| in web browsers. You are free to adjust these settings as needed.
|
|
|
|
|
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
|
|
|
|
|
*/
|
|
|
|
'paths' => ['api/*', 'v1/*', 'sanctum/csrf-cookie', 'login', 'logout'],
|
|
|
|
'allowed_methods' => ['*'],
|
|
|
|
'allowed_origins' => [
|
|
'http://localhost:3000',
|
|
'http://localhost:5173',
|
|
'http://localhost:5174',
|
|
'http://localhost:4173',
|
|
'https://portal.tgs.com.vn',
|
|
'https://demo.client.tgs.com.vn',
|
|
'https://demo.admin.tgs.com.vn',
|
|
'http://demo.client.tgs.com.vn',
|
|
'http://demo.admin.tgs.com.vn',
|
|
],
|
|
|
|
'allowed_origins_patterns' => [],
|
|
|
|
'allowed_headers' => ['*'],
|
|
|
|
'supports_credentials' => true,
|
|
];
|