mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
47 lines
1.3 KiB
PHP
47 lines
1.3 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Cachet.
|
|
*
|
|
* (c) Alt Three Services Limited
|
|
*
|
|
* 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,
|
|
],
|
|
],
|
|
|
|
];
|