Config change fix cors
This commit is contained in:
@ -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' => [
|
||||
'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/'
|
||||
'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,
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user