Cachet/config/cors.php

38 lines
1.1 KiB
PHP
Raw Normal View History

2015-05-18 22:07:28 +01:00
<?php
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,
2015-05-20 09:18:27 +01:00
'allowedOrigins' => ['*'],
2015-05-18 22:07:28 +01:00
'allowedHeaders' => [],
'allowedMethods' => [],
'exposedHeaders' => [],
'maxAge' => 0,
'hosts' => [],
],
'paths' => [
'api/v1/*' => [
'allowedOrigins' => [],
'allowedHeaders' => ['X-Cachet-Token'],
'allowedMethods' => ['*'],
'maxAge' => 3600,
],
],
];