* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ return [ /* |-------------------------------------------------------------------------- | Laravel CORS Defaults |-------------------------------------------------------------------------- | | The defaults are the default values applied to all the paths that match, | unless overridden in a specific URL configuration. | If you want them to apply to everything, you must define a path with *. | | allowedOrigins, allowedHeaders and allowedMethods can be set to ['*'] | to accept any value, the allowed methods however have to be explicitly listed. | */ 'defaults' => [ 'supportsCredentials' => true, 'allowedOrigins' => ['*'], 'allowedHeaders' => [], 'allowedMethods' => [], 'exposedHeaders' => [], 'maxAge' => 0, 'hosts' => [], ], 'paths' => [ 'api/v1/*' => [ 'allowedOrigins' => [], 'allowedHeaders' => ['X-Cachet-Token'], 'allowedMethods' => ['*'], 'maxAge' => 3600, ], ], ];