diff --git a/config/cors.php b/config/cors.php index 62c8988..8ef2278 100644 --- a/config/cors.php +++ b/config/cors.php @@ -1,6 +1,40 @@ -// In file: config/cors.php -'allowed_origins' => [ - 'http://localhost:3000', // For npm run dev on your desktop - 'http://192.168.20.13', // Or whatever IP your T3 app might be on - 'http://laravel-server.lab.audasmedia.com.au/' -], + ['api/*'], + + 'allowed_methods' => ['*'], + + 'allowed_origins' => [ + 'http://localhost:3000', + 'http://192.168.20.13', + '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, + +];