55 lines
1.2 KiB
PHP
55 lines
1.2 KiB
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/*', 'oauth2/*'],
|
|
|
|
'allowed_methods' => [
|
|
'POST',
|
|
'GET',
|
|
'OPTIONS',
|
|
'PUT',
|
|
'PATCH',
|
|
'DELETE',
|
|
],
|
|
|
|
'allowed_origins' => ['*'],
|
|
|
|
'allowed_origins_patterns' => [],
|
|
|
|
'allowed_headers' => [
|
|
'Accept',
|
|
'Content-Type',
|
|
'X-Auth-Token',
|
|
'Origin',
|
|
'Authorization',
|
|
'X-Requested-With',
|
|
],
|
|
|
|
'exposed_headers' => [
|
|
'Cache-Control',
|
|
'Content-Language',
|
|
'Content-Type',
|
|
'Expires',
|
|
'Last-Modified',
|
|
'Pragma',
|
|
],
|
|
|
|
'max_age' => 60 * 60 * 24,
|
|
|
|
'supports_credentials' => false,
|
|
];
|