Config change fix cors

This commit is contained in:
2025-09-10 09:45:00 +10:00
parent c9580c2425
commit 998b340411

View File

@ -1,6 +1,40 @@
// In file: config/cors.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/*'],
'allowed_methods' => ['*'],
'allowed_origins' => [ 'allowed_origins' => [
'http://localhost:3000', // For npm run dev on your desktop 'http://localhost:3000',
'http://192.168.20.13', // Or whatever IP your T3 app might be on 'http://192.168.20.13',
'http://laravel-server.lab.audasmedia.com.au/' 'http://192.168.20.13:3000',
'http://laravel-server.lab.audasmedia.com.au/',
'http://192.138.20.27:3000',
], ],
'allowed_origins_patterns' => [],
'allowed_headers' => ['*'],
'exposed_headers' => [],
'max_age' => 0,
'supports_credentials' => false,
];