ldc-nature-and-respect/config/cors.php

37 lines
988 B
PHP
Raw Normal View History

2022-11-18 12:39:03 +01:00
<?php
return [
/*
2022-11-18 15:35:39 +01:00
|--------------------------------------------------------------------------
| 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
|
2022-11-18 12:39:03 +01:00
*/
2023-05-04 17:10:35 +02:00
'paths' => ['api/*', 'sanctum/csrf-cookie', '*/storefinder'],
2022-11-18 12:39:03 +01:00
'allowed_methods' => ['*'],
'allowed_origins' => ['*'],
2023-05-04 17:10:35 +02:00
'allowed_origins_patterns' => [
'https:\/\/[a-z0-9\-\.]*\.' . \str_replace('.', '\.', 'wo-gilt-was.de')
],
2022-11-18 12:39:03 +01:00
'allowed_headers' => ['*'],
'exposed_headers' => [],
'max_age' => 0,
'supports_credentials' => false,
];