Files
My-KOPKB/be/config/cors.php
T
ismailmasseran 507072c5ab
Build Docker Image / build-backend (push) Failing after 7s
Build Docker Image / build-frontend (push) Failing after 6s
DONE: add cicd pipeline separate fe and be, test first on gitea (#1)
Co-authored-by: ISMAIL MASSERAN <topaz@ISMAILs-Macbook.local>
Reviewed-on: #1
2026-06-30 11:01:09 +08:00

41 lines
1.0 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' => ['/*', 'sanctum/csrf-cookie'],
'allowed_methods' => ['*'],
'allowed_origins' => [
'http://localhost',
'http://127.0.0.1',
'http://localhost:5173',
'http://127.0.0.1:5173',
'https://anggota.koppkb.com',
'http://anggota.koppkb.com',
],
'allowed_origins_patterns' => [],
'allowed_headers' => ['*'],
'exposed_headers' => [],
'max_age' => 0,
'supports_credentials' => true,
];