2019-07-29 16:32:37 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
/*
|
2020-07-08 07:36:51 -05:00
|
|
|
|--------------------------------------------------------------------------
|
2021-10-03 01:04:59 +02:00
|
|
|
| Cross-Origin Resource Sharing (CORS) Configuration
|
2020-07-08 07:36:51 -05:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
2021-10-03 01:04:59 +02:00
|
|
|
| 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.
|
2020-07-08 07:36:51 -05:00
|
|
|
|
|
2021-10-03 01:04:59 +02:00
|
|
|
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
|
2020-07-08 07:36:51 -05:00
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* You can enable CORS for 1 or multiple paths.
|
|
|
|
* Example: ['api/*']
|
|
|
|
*/
|
|
|
|
'paths' => [],
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Matches the request method. `[*]` allows all methods.
|
|
|
|
*/
|
|
|
|
'allowed_methods' => ['*'],
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Matches the request origin. `[*]` allows all origins. Wildcards can be used, eg `*.mydomain.com`
|
|
|
|
*/
|
|
|
|
'allowed_origins' => [],
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Patterns that can be used with `preg_match` to match the origin.
|
|
|
|
*/
|
|
|
|
'allowed_origins_patterns' => [],
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Sets the Access-Control-Allow-Headers response header. `[*]` allows all headers.
|
|
|
|
*/
|
|
|
|
'allowed_headers' => ['*'],
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Sets the Access-Control-Expose-Headers response header with these headers.
|
|
|
|
*/
|
|
|
|
'exposed_headers' => [],
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Sets the Access-Control-Max-Age response header when > 0.
|
2019-07-29 16:32:37 -05:00
|
|
|
*/
|
2020-07-08 07:36:51 -05:00
|
|
|
'max_age' => 0,
|
2019-07-29 16:32:37 -05:00
|
|
|
|
|
|
|
/*
|
2020-07-08 07:36:51 -05:00
|
|
|
* Sets the Access-Control-Allow-Credentials header.
|
2019-07-29 16:32:37 -05:00
|
|
|
*/
|
2020-07-08 07:36:51 -05:00
|
|
|
'supports_credentials' => false,
|
2019-07-29 16:32:37 -05:00
|
|
|
];
|