Cachet/config/cors.php

30 lines
805 B
PHP
Raw Normal View History

2015-05-18 22:07:28 +01:00
<?php
2015-05-25 19:19:03 +01:00
/*
* This file is part of Cachet.
*
2015-07-06 17:37:01 +01:00
* (c) Alt Three Services Limited
2015-05-25 19:19:03 +01:00
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
2015-05-18 22:07:28 +01:00
return [
/*
|--------------------------------------------------------------------------
2016-02-24 12:32:39 +00:00
| Laravel CORS
2015-05-18 22:07:28 +01:00
|--------------------------------------------------------------------------
|
2016-02-24 12:32:39 +00:00
| allowedOrigins, allowedHeaders and allowedMethods can be set to array('*')
| to accept any value.
2015-05-18 22:07:28 +01:00
|
*/
2016-02-24 12:32:39 +00:00
'supportsCredentials' => false,
'allowedOrigins' => ['*'],
'allowedHeaders' => ['X-Cachet-Token'],
'allowedMethods' => ['*'],
'exposedHeaders' => [],
'maxAge' => 3600,
'hosts' => [],
2015-05-18 22:07:28 +01:00
];