23-01-2026
This commit is contained in:
parent
07959c0ba2
commit
854ce02bf6
166 changed files with 32909 additions and 1262 deletions
62
config/cors.php
Normal file
62
config/cors.php
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross-Origin Resource Sharing (CORS) Configuration
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Diese Konfiguration ermöglicht dynamische CORS-Unterstützung für alle
|
||||
| konfigurierten Domains im Multi-Domain-Setup.
|
||||
|
|
||||
*/
|
||||
|
||||
'paths' => ['api/*', 'sanctum/csrf-cookie', '@vite/*', '@fs/*', 'build/*'],
|
||||
|
||||
'allowed_methods' => ['*'],
|
||||
|
||||
'allowed_origins' => [
|
||||
// Dynamisch alle konfigurierten Domains erlauben
|
||||
env('DOMAIN_PORTAL_URL', 'https://portal.b2in.eu'),
|
||||
env('DOMAIN_B2IN_URL', 'https://b2in.eu'),
|
||||
env('DOMAIN_B2A_URL', 'https://bridges2america.online'),
|
||||
env('DOMAIN_STILEIGENTUM_URL', 'https://stileigentum.de'),
|
||||
env('DOMAIN_STYLE2OWN_URL', 'https://style2own.de'),
|
||||
env('VITE_DEV_SERVER_URL', 'https://assets.b2in.eu'),
|
||||
// HTTP-Varianten für Entwicklung
|
||||
'http://portal.b2in.test',
|
||||
'http://b2in.test',
|
||||
'http://b2a.test',
|
||||
'http://stileigentum.test',
|
||||
'http://style2own.test',
|
||||
'http://assets.b2in.test',
|
||||
// Localhost für lokale Entwicklung
|
||||
'http://localhost:5174',
|
||||
'http://127.0.0.1:5174',
|
||||
// Live Domains
|
||||
'https://portal.b2in.eu',
|
||||
'https://api.b2in.eu',
|
||||
'https://b2in.eu',
|
||||
'https://cabinet.b2in.eu', // Digital Signage Display
|
||||
'https://bridges2america.online',
|
||||
'https://stileigentum.de',
|
||||
'https://style2own.de',
|
||||
],
|
||||
|
||||
'allowed_origins_patterns' => [
|
||||
// Erlaube alle Subdomains von .b2in.eu für Produktion
|
||||
'#^https?://.*\.b2in\.eu$#',
|
||||
// Erlaube alle Subdomains von .test und .local für Entwicklung
|
||||
'#^https?://.*\.b2in\.test$#',
|
||||
'#^https?://.*\.test$#',
|
||||
'#^https?://.*\.local$#',
|
||||
],
|
||||
|
||||
'allowed_headers' => ['*'],
|
||||
|
||||
'exposed_headers' => [],
|
||||
|
||||
'max_age' => 0,
|
||||
|
||||
'supports_credentials' => true,
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue