Files
panel/config/cors.php

34 lines
705 B
PHP
Raw Normal View History

2025-09-24 12:12:33 +03:30
<?php
return [
/*
|--------------------------------------------------------------------------
| Laravel CORS Configuration
|--------------------------------------------------------------------------
|
| این تنظیمات برای کنترل درخواست‌های Cross-Origin استفاده میشن
|
*/
'paths' => ['api/*', 'dev/*', 'sanctum/csrf-cookie'],
'allowed_methods' => ['*'],
'allowed_origins' => [
'http://localhost:8000',
'http://megategra.com:8001'
],
'allowed_origins_patterns' => [],
'allowed_headers' => ['*'],
'exposed_headers' => [],
'max_age' => 0,
'supports_credentials' => true,
];