ldc-legaulois/config/cors.php

35 lines
864 B
PHP
Raw Permalink Normal View History

2020-07-23 10:29:36 +02:00
<?php
return [
/*
2022-02-10 16:14:58 +01:00
|--------------------------------------------------------------------------
2024-01-10 14:49:46 +01:00
| Cross-Origin Resource Sharing (CORS) Configuration
2022-02-10 16:14:58 +01:00
|--------------------------------------------------------------------------
|
2024-01-10 14:49:46 +01: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.
2022-02-10 16:14:58 +01:00
|
2024-01-10 14:49:46 +01:00
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
2022-02-10 16:14:58 +01:00
|
2026-09-25 16:25:31 +02:00
*/
2020-07-23 10:29:36 +02:00
2024-01-10 14:49:46 +01:00
'paths' => ['api/*'],
2020-07-23 10:29:36 +02:00
'allowed_methods' => ['*'],
2021-04-29 12:46:06 +02:00
'allowed_origins' => ['*'],
2020-07-23 10:29:36 +02:00
2024-01-10 14:49:46 +01:00
'allowed_origins_patterns' => [],
2020-07-23 10:29:36 +02:00
'allowed_headers' => ['*'],
'exposed_headers' => [],
'max_age' => 0,
'supports_credentials' => false,
2024-01-10 14:49:46 +01:00
2020-07-23 10:29:36 +02:00
];